1 admin_bar.module | admin_bar_menu() |
Implements hook_menu().
File
- core/
modules/ admin_bar/ admin_bar.module, line 10 - Render an administrative bar as a dropdown menu at the top of the window.
Code
function admin_bar_menu() {
// AJAX callback.
$items['js/admin_bar/cache'] = array(
'page callback' => 'admin_bar_js_cache',
'delivery callback' => 'admin_bar_deliver',
'access arguments' => array('access administration bar'),
'type' => MENU_CALLBACK,
);
// Module settings.
$items['admin/config/administration/admin-bar'] = array(
'title' => 'Administration bar',
'description' => 'Adjust administration bar settings.',
'page callback' => 'backdrop_get_form',
'page arguments' => array('admin_bar_theme_settings'),
'access arguments' => array('administer site configuration'),
'file' => 'admin_bar.inc',
);
// Menu link callbacks.
$items['admin_bar/flush-cache'] = array(
'page callback' => 'admin_bar_flush_cache',
'access arguments' => array('flush caches'),
'type' => MENU_CALLBACK,
'file' => 'admin_bar.inc',
);
return $items;
}