function admin_menu_menu in Administration menu 7.3
Same name and namespace in other branches
- 8.3 admin_menu.module \admin_menu_menu()
- 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()
Implements hook_menu().
File
- ./
admin_menu.module, line 89 - Render an administrative menu as a dropdown menu at the top of the window.
Code
function admin_menu_menu() {
// Client side caching via Ajax callback.
// This is a fallback menu entry, in case the JS module is not installed.
// @see http://drupal.org/project/js
$items['js/admin_menu/cache/%'] = array(
'page callback' => 'admin_menu_js_callback_cache',
'access callback' => 'admin_menu_js_callback_cache_access',
'delivery callback' => 'admin_menu_js_callback_cache_deliver',
'type' => MENU_CALLBACK,
);
// Module settings.
$items['admin/config/administration'] = array(
'title' => 'Administration',
'description' => 'Administration tools.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access administration pages',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/administration/admin-menu'] = array(
'title' => 'Administration menu',
'description' => 'Adjust administration menu settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'admin_menu_theme_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'admin_menu.inc',
);
// Menu link callbacks.
$items['admin_menu/flush-cache'] = array(
'page callback' => 'admin_menu_flush_cache',
'access arguments' => array(
'flush caches',
),
'type' => MENU_CALLBACK,
'file' => 'admin_menu.inc',
);
return $items;
}