mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:25:54 +00:00
* fox.form.Select: add several properties allowing it to better
imitate other controls like DropDownButton, etc. * rework several main toolbar items to use fox.form.Select instead of other controls * replace HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM with HOOK_HEADLINE_TOOLBAR_SELECT_MENU_ITEM2 because of markup change (option instead of menuitem) * PluginHost: add some explicit typecasts to make intellephense shut up
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user