Same name and namespace in other branches
  1. 5.x modules/system/system.module \system_admin_compact_page()
  2. 6.x modules/system/system.admin.inc \system_admin_compact_page()

Menu callback; Sets whether the admin menu is in compact mode or not.

Parameters

$mode: Valid values are 'on' and 'off'.

1 string reference to 'system_admin_compact_page'
system_menu in modules/system/system.module
Implements hook_menu().

File

modules/system/system.module, line 2978
Configuration system that lets administrators modify the workings of the site.

Code

function system_admin_compact_page($mode = 'off') {
  user_cookie_save(array(
    'admin_compact_mode' => $mode == 'on',
  ));
  drupal_goto();
}