You are here

function admin_menu_dropdown_menu in Admin Menu Hider 5.2

Same name and namespace in other branches
  1. 5 admin_menu_dropdown.module \admin_menu_dropdown_menu()
  2. 6.2 admin_menu_dropdown.module \admin_menu_dropdown_menu()
  3. 7.2 admin_menu_dropdown.module \admin_menu_dropdown_menu()

Implementation of hook_menu().

File

./admin_menu_dropdown.module, line 11
Adds the ability to show/hide the Drupal Administration Menu via a selected behavior

Code

function admin_menu_dropdown_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/admin_menu/amd_js',
      'title' => 'Admin Menu Dropdown JS',
      'callback' => 'admin_menu_dropdown_js',
      'access' => user_access('access administration menu'),
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}