You are here

function admin_menu_menu in Administration menu 6

Same name and namespace in other branches
  1. 8.3 admin_menu.module \admin_menu_menu()
  2. 5.3 admin_menu.module \admin_menu_menu()
  3. 5 admin_menu.module \admin_menu_menu()
  4. 5.2 admin_menu.module \admin_menu_menu()
  5. 6.3 admin_menu.module \admin_menu_menu()
  6. 7.3 admin_menu.module \admin_menu_menu()

Implementation of hook_menu().

File

./admin_menu.module, line 47
Renders a menu tree for administrative purposes as a dropdown menu at the top of the window.

Code

function admin_menu_menu() {
  $items = array();
  $items['admin/settings/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',
  );
  $items['admin_menu/toggle-modules'] = array(
    'page callback' => 'admin_menu_toggle_modules',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'admin_menu.inc',
  );
  $items['admin_menu/flush-cache'] = array(
    'page callback' => 'admin_menu_flush_cache',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'admin_menu.inc',
  );
  return $items;
}