From: Andrew Dolgov Date: Wed, 26 Dec 2012 21:12:28 +0000 (+0400) Subject: add several HOOK_PREFS_TAB_SECTION hook points X-Git-Tag: 1.7.0~107 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=699daf5856fc2c0b7cc57c5b3271ee34b12a0db4;p=tt-rss.git add several HOOK_PREFS_TAB_SECTION hook points --- diff --git a/classes/pluginhost.php b/classes/pluginhost.php index ee56886f..545e62e0 100644 --- a/classes/pluginhost.php +++ b/classes/pluginhost.php @@ -9,7 +9,7 @@ class PluginHost { const HOOK_ARTICLE_BUTTON = 1; const HOOK_ARTICLE_FILTER = 2; const HOOK_PREFS_TAB = 3; - const HOOK_PREFS_SECTION = 4; + const HOOK_PREFS_TAB_SECTION = 4; const HOOK_PREFS_TABS = 5; const HOOK_FEED_PARSED = 6; const HOOK_UPDATE_TASK = 7; diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index b28bd549..b423eab9 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -1414,6 +1414,10 @@ class Pref_Feeds extends Handler_Protected { print " "; + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION, + "hook_prefs_tab_section", "prefFeedsOPML"); + print ""; # pane if (strpos($_SERVER['HTTP_USER_AGENT'], "Firefox") !== false) { @@ -1453,6 +1457,10 @@ class Pref_Feeds extends Handler_Protected { print "" . __('Share with Tiny Tiny RSS'). ""; + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION, + "hook_prefs_tab_section", "prefFeedsBookmarklets"); + print ""; #pane print "
"; @@ -1477,6 +1485,10 @@ class Pref_Feeds extends Handler_Protected { print " "; + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION, + "hook_prefs_tab_section", "prefFeedsPublishedGenerated"); + print "
"; #pane global $pluginhost; diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 14e88546..e8926194 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -366,6 +366,10 @@ class Pref_Prefs extends Handler_Protected { } } + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION, + "hook_prefs_tab_section", "prefPrefsAuth"); + print ""; #pane print "
"; @@ -594,6 +598,10 @@ class Pref_Prefs extends Handler_Protected { print ""; + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION, + "hook_prefs_tab_section", "prefPrefsPrefsInside"); + print '
'; # inside pane print '
'; @@ -621,6 +629,10 @@ class Pref_Prefs extends Handler_Protected { "; + global $pluginhost; + $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB_SECTION, + "hook_prefs_tab_section", "prefPrefsPrefsOutside"); + print ""; print '
'; # inner pane print ''; # border container