mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 19:05:55 +00:00
add support for plugins in prefs
This commit is contained in:
@@ -1530,6 +1530,10 @@ class Pref_Feeds extends Handler_Protected {
|
||||
|
||||
print "</div>"; #pane
|
||||
|
||||
global $pluginhost;
|
||||
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB,
|
||||
"hook_prefs_tab", "prefFeeds");
|
||||
|
||||
print "</div>"; #container
|
||||
|
||||
}
|
||||
|
||||
@@ -625,6 +625,11 @@ class Pref_Filters extends Handler_Protected {
|
||||
</div>";
|
||||
|
||||
print "</div>"; #pane
|
||||
|
||||
global $pluginhost;
|
||||
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB,
|
||||
"hook_prefs_tab", "prefFilters");
|
||||
|
||||
print "</div>"; #container
|
||||
|
||||
}
|
||||
|
||||
@@ -211,6 +211,11 @@ class Pref_Instances extends Handler_Protected {
|
||||
print "</table>";
|
||||
|
||||
print "</div>"; #pane
|
||||
|
||||
global $pluginhost;
|
||||
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB,
|
||||
"hook_prefs_tab", "prefInstances");
|
||||
|
||||
print "</div>"; #container
|
||||
|
||||
}
|
||||
|
||||
@@ -318,6 +318,11 @@ class Pref_Labels extends Handler_Protected {
|
||||
</div>";
|
||||
|
||||
print "</div>"; #pane
|
||||
|
||||
global $pluginhost;
|
||||
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB,
|
||||
"hook_prefs_tab", "prefLabels");
|
||||
|
||||
print "</div>"; #container
|
||||
|
||||
}
|
||||
|
||||
@@ -650,6 +650,10 @@ class Pref_Prefs extends Handler_Protected {
|
||||
print "</div>"; #pane
|
||||
}
|
||||
|
||||
global $pluginhost;
|
||||
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB,
|
||||
"hook_prefs_tab", "prefPrefs");
|
||||
|
||||
print "</div>"; #container
|
||||
}
|
||||
|
||||
|
||||
@@ -487,6 +487,11 @@ class Pref_Users extends Handler_Protected {
|
||||
}
|
||||
|
||||
print "</div>"; #pane
|
||||
|
||||
global $pluginhost;
|
||||
$pluginhost->run_hooks($pluginhost::HOOK_PREFS_TAB,
|
||||
"hook_prefs_tab", "prefUsers");
|
||||
|
||||
print "</div>"; #container
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user