From: Andrew Dolgov Date: Fri, 26 Apr 2013 10:21:08 +0000 (+0400) Subject: add HOOK_PREFS_EDIT_FEED X-Git-Tag: 1.7.9~25^2~75 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=057177eb2c38f62e384752ad06a9d59707dd3647;p=tt-rss.git add HOOK_PREFS_EDIT_FEED --- diff --git a/classes/pluginhost.php b/classes/pluginhost.php index 9ebabeb8..c70d2327 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -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; diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 2f5a0e49..6fd2ae42 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -748,6 +748,9 @@ class Pref_Feeds extends Handler_Protected { print ""; + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_EDIT_FEED, + "hook_prefs_edit_feed", $feed_id); + $title = htmlspecialchars($title, ENT_QUOTES); print "