add HOOK_UNSUBSCRIBE_FEED
This commit is contained in:
parent
d7effa92a4
commit
5395526444
|
@ -56,6 +56,7 @@ class PluginHost {
|
|||
const HOOK_FORMAT_ARTICLE_CDM = 35;
|
||||
const HOOK_FEED_BASIC_INFO = 36;
|
||||
const HOOK_SEND_LOCAL_FILE = 37;
|
||||
const HOOK_UNSUBSCRIBE_FEED = 38;
|
||||
|
||||
const KIND_ALL = 1;
|
||||
const KIND_SYSTEM = 2;
|
||||
|
|
|
@ -1740,6 +1740,10 @@ class Pref_Feeds extends Handler_Protected {
|
|||
|
||||
static function remove_feed($id, $owner_uid) {
|
||||
|
||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_UNSUBSCRIBE_FEED) as $p) {
|
||||
$line = $p->hook_unsubscribe_feed($id, $owner_uid);
|
||||
}
|
||||
|
||||
if ($id > 0) {
|
||||
|
||||
/* save starred articles in Archived feed */
|
||||
|
|
Loading…
Reference in New Issue