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

index 9ebabeb8c343c8f2abc28f88fc6ab8517b80912c..c70d23274bc7bbc176bd40b5134a7ce7f62d47b9 100644 (file)
@@ -34,6 +34,7 @@ class PluginHost {
        const HOOK_HEADLINE_TOOLBAR_BUTTON = 17;
        const HOOK_HOTKEY_INFO = 18;
        const HOOK_ARTICLE_LEFT_BUTTON = 19;
+       const HOOK_PREFS_EDIT_FEED = 20;
 
        const KIND_ALL = 1;
        const KIND_SYSTEM = 2;
index 2f5a0e499d7a51bb631995009f9ebe22515ecedc..6fd2ae42dbb81281e1c550e03dc0d1f989bbcac8 100644 (file)
@@ -748,6 +748,9 @@ class Pref_Feeds extends Handler_Protected {
 
                print "</div>";
 
+               PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_EDIT_FEED,
+                       "hook_prefs_edit_feed", $feed_id);
+
                $title = htmlspecialchars($title, ENT_QUOTES);
 
                print "<div class='dlgButtons'>