summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-26 14:21:08 +0400
committerAndrew Dolgov <[email protected]>2013-04-26 14:21:08 +0400
commit057177eb2c38f62e384752ad06a9d59707dd3647 (patch)
treea0d77b008f9498cf257ca19fc455c536bdfa0407 /classes
parent3fbb4d183d6b0cb4b6d9d2d8d62d635eb70ebf13 (diff)
add HOOK_PREFS_EDIT_FEED
Diffstat (limited to 'classes')
-rw-r--r--classes/pluginhost.php1
-rw-r--r--classes/pref/feeds.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index 9ebabeb8c..c70d23274 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 2f5a0e499..6fd2ae42d 100644
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -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'>