View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0024590||mantisbt||plug-ins||public||2018-07-05 09:12||2018-07-05 09:35|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Target Version||Fixed in Version|
|Summary||0024590: Add EVENT_MENU_MAIN_FILTER to allow complete customisation of main menu|
This patch modifies the way the main sidebar menu is built; menu items are all assembled in an array first, which is then given the chance to be altered by plugins using a new chain filter EVENT_MENU_MAIN_FILTER.
This allows plugins to do a few things that currently isn't possible, especially to the hard-coded items (My View, View Bugs), such as re-order the items, change the icon, or remove them. It also allows plugins to insert new items anywhere in the menu (not just the start or end). Additionally, by returning an empty array, plugins can get rid of the sidebar entirely.
This is partly inspired by the way Wordpress allows plugins to alter admin menu item, and by our need to remove the My View item in certain circumstances.
|Tags||No tags attached.|