function admin_menu_menu in Administration menu 8.3
Same name and namespace in other branches
- 5.3 admin_menu.module \admin_menu_menu()
- 5 admin_menu.module \admin_menu_menu()
- 5.2 admin_menu.module \admin_menu_menu()
- 6.3 admin_menu.module \admin_menu_menu()
- 6 admin_menu.module \admin_menu_menu()
- 7.3 admin_menu.module \admin_menu_menu()
Implements hook_menu().
File
- ./
admin_menu.module, line 66 - Render an administrative menu as a dropdown menu at the top of the window.
Code
function admin_menu_menu() {
// AJAX callback.
// @see http://drupal.org/project/js
$items['js/admin_menu/cache'] = [
'page callback' => 'admin_menu_js_cache',
'access arguments' => [
'access administration menu',
],
'type' => MENU_CALLBACK,
];
// Module settings.
$items['admin/config/admin'] = [
'title' => 'Administration',
'description' => 'Administration tools.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => [
'access administration pages',
],
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
];
$items['admin/config/admin/admin_menu'] = [
'title' => 'Administration menu',
'description' => 'Adjust administration menu settings.',
'page callback' => 'drupal_get_form',
'page arguments' => [
'admin_menu_admin_settings_form',
],
'access arguments' => [
'administer site configuration',
],
'file' => 'admin_menu.inc',
];
// Menu link callbacks.
$items['admin_menu/flush-cache'] = [
'page callback' => 'admin_menu_flush_cache',
'access arguments' => [
'flush caches',
],
'type' => MENU_CALLBACK,
'file' => 'admin_menu.inc',
];
return $items;
}