]> git.wh0rd.org Git - tt-rss.git/commitdiff
add HOOK_PREFS_SAVE_FEED
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 26 Apr 2013 10:23:18 +0000 (14:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 26 Apr 2013 10:23:18 +0000 (14:23 +0400)
classes/pluginhost.php
classes/pref/feeds.php

index c70d23274bc7bbc176bd40b5134a7ce7f62d47b9..302fdbaeb9b28c6ef591eaa1dd54f6283a92ed9a 100644 (file)
@@ -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;
index 6fd2ae42dbb81281e1c550e03dc0d1f989bbcac8..ddfa56d01967aa0c7cf1813d896a4c873a022e4b 100644 (file)
@@ -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();