From: Andrew Dolgov Date: Fri, 26 Apr 2013 10:23:18 +0000 (+0400) Subject: add HOOK_PREFS_SAVE_FEED X-Git-Tag: 1.7.9~25^2~74 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8cefe38a0a1623db866cb9bf295fe8a591ad5488;p=tt-rss.git add HOOK_PREFS_SAVE_FEED --- diff --git a/classes/pluginhost.php b/classes/pluginhost.php index c70d2327..302fdbae 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -35,6 +35,7 @@ class PluginHost { const HOOK_HOTKEY_INFO = 18; const HOOK_ARTICLE_LEFT_BUTTON = 19; const HOOK_PREFS_EDIT_FEED = 20; + const HOOK_PREFS_SAVE_FEED = 21; const KIND_ALL = 1; const KIND_SYSTEM = 2; diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 6fd2ae42..ddfa56d0 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1002,6 +1002,9 @@ class Pref_Feeds extends Handler_Protected { mark_unread_on_update = $mark_unread_on_update WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]); + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_SAVE_FEED, + "hook_prefs_save_feed", $feed_id); + } else { $feed_data = array();