You are here

function admin_menu_dropdown_js in Admin Menu Hider 6.2

Same name and namespace in other branches
  1. 5.2 admin_menu_dropdown.module \admin_menu_dropdown_js()
  2. 7.2 admin_menu_dropdown.module \admin_menu_dropdown_js()
1 string reference to 'admin_menu_dropdown_js'
admin_menu_dropdown_menu in ./admin_menu_dropdown.module
Implementation of hook_menu().

File

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

Code

function admin_menu_dropdown_js() {
  $args = func_get_args();
  switch ($args[0]) {
    case 'visibility':
      $_SESSION['admin_menu_visibility'] = $args[1] == 'hide' ? 1 : 0;
      print drupal_json($_SESSION['admin_menu_visibility']);
      break;
  }
  exit;
}