You are here

function system_admin_compact_page in Drupal 6

Same name and namespace in other branches
  1. 5 modules/system/system.module \system_admin_compact_page()
  2. 7 modules/system/system.module \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
Implementation of hook_menu().

File

modules/system/system.admin.inc, line 90
Admin page callbacks for the system module.

Code

function system_admin_compact_page($mode = 'off') {
  global $user;
  user_save($user, array(
    'admin_compact_mode' => $mode == 'on',
  ));
  drupal_goto('admin');
}