From 699daf5856fc2c0b7cc57c5b3271ee34b12a0db4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 27 Dec 2012 01:12:28 +0400 Subject: [PATCH] add several HOOK_PREFS_TAB_SECTION hook points --- classes/pluginhost.php | 2 +- classes/pref/feeds.php | 12 ++++++++++++ classes/pref/prefs.php | 12 ++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) 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 -- 2.39.2