function system_admin_compact_page

7.x system.module system_admin_compact_page($mode = 'off')

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

Parameters

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

3 string references to 'system_admin_compact_page'
drupal-6.bare.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.
drupal-6.filled.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
system_menu in drupal/modules/system/system.module
Implements hook_menu().

File

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