diff options
author | Andrew Dolgov <[email protected]> | 2022-01-13 13:59:36 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-01-13 13:59:36 +0300 |
commit | 304845f3807cc1021de1f29a35e2e3c370ff9882 (patch) | |
tree | 12206fcb33d26907254ee6adfe2bb20a553bbbca /classes/plugin.php | |
parent | 8cf9c451dc1d5f3ed23ead40bee41592f7c07254 (diff) | |
parent | f1607902e6953aa5c486157835105c0c8f08779f (diff) |
Merge branch 'master' of git.fakecake.org:fox/tt-rss
Diffstat (limited to 'classes/plugin.php')
-rw-r--r-- | classes/plugin.php | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/classes/plugin.php b/classes/plugin.php index be8376925..39af6a9a1 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -98,7 +98,7 @@ abstract class Plugin { /* GLOBAL hooks are invoked in global context, only available to system plugins (loaded via .env for all users) */ - /** Adds buttons for article (on the right) - e.g. mail, share, add note. + /** Adds buttons for article (on the right) - e.g. mail, share, add note. Generated markup must be valid XML. * @param array<string,mixed> $line * @return string * @see PluginHost::HOOK_ARTICLE_BUTTON @@ -307,7 +307,7 @@ abstract class Plugin { return []; } - /** Adds per-article buttons on the left side + /** Adds per-article buttons on the left side. Generated markup must be valid XML. * @param array<string,mixed> $row * @return string * @see PluginHost::HOOK_ARTICLE_LEFT_BUTTON @@ -647,6 +647,7 @@ abstract class Plugin { } /** Allows adding custom elements to headlines Select... dropdown + * @deprecated removed, see Plugin::hook_headline_toolbar_select_menu_item2() * @param int $feed_id * @param int $is_cat * @return string @@ -658,6 +659,18 @@ abstract class Plugin { return ""; } + /** Allows adding custom elements to headlines Select... select dropdown (<option> format) + * @param int $feed_id + * @param int $is_cat + * @return string + * @see PluginHost::HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM2 + */ + function hook_headline_toolbar_select_menu_item2($feed_id, $is_cat) { + user_error("Dummy method invoked.", E_USER_ERROR); + + return ""; + } + /** Invoked when user tries to subscribe to feed, may override information (i.e. feed URL) used afterwards * @param string $url * @param string $auth_login |