You are here

function admin_menu_menu in Administration menu 6.3

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 admin_menu.module \admin_menu_menu()
  6. 7.3 admin_menu.module \admin_menu_menu()

Implements hook_menu().

File

./admin_menu.module, line 54
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'] = array(
    'page callback' => 'admin_menu_js_cache',
    'access arguments' => array(
      'access administration menu',
    ),
    'type' => MENU_CALLBACK,
  );

  // Module settings.
  $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',
  );

  // Menu link callbacks.
  $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;
}