function 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 drupal/core/modules/system/system.module
Implements hook_menu().

File

drupal/core/modules/system/system.module, line 3355
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();
}