diff options
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -116,15 +116,20 @@ if ($conf['ws_access_control']) // Do we need to display ws_checker } // required before plugin page inclusion -$plugin_menu_links = array( +$plugin_menu_links = trigger_event('get_admin_plugin_menu_links', array() ); + +function UC_name_compare($a, $b) +{ + return strcmp(strtolower($a['NAME']), strtolower($b['NAME'])); +} +usort($plugin_menu_links, 'UC_name_compare'); + +array_unshift($plugin_menu_links, array( 'NAME' => l10n('admin'), 'URL' => $link_start.'plugins' ) ); -$plugin_menu_links = trigger_event('get_admin_plugin_menu_links', - $plugin_menu_links ); - include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php'); |