function admin_menu_admin_menu in Administration menu 5.3
Same name and namespace in other branches
- 5.2 admin_menu.module \admin_menu_admin_menu()
- 6 admin_menu.inc \admin_menu_admin_menu()
Implementation of hook_admin_menu().
Parameters
array $admin_menu: An array containing the complete administration menu structure, passed by reference.
bool $may_cache: Whether changes will be cached. If new menu items contain dynamic information, such as query strings or user-related data, these should be added on each page request ($may_cache = FALSE).
File
- ./
admin_menu.module, line 589 - Render an administrative menu as a dropdown menu at the top of the window.
Code
function admin_menu_admin_menu(&$admin_menu, $may_cache) {
if (!$may_cache) {
// Add count of active anonymous/authenticated users.
$mid_admin = $admin_menu['index']['admin'];
admin_menu_add_item($admin_menu, $mid_admin, array(
'title' => admin_menu_get_user_count(),
'description' => t('Current anonymous / authenticated users'),
'path' => 'user',
'weight' => -90,
'class' => 'admin-menu-action admin-menu-users',
));
}
}