system_admin_compact_page

5 system.module system_admin_compact_page($mode = 'off')
6 system.admin.inc system_admin_compact_page($mode = 'off')
7 system.module system_admin_compact_page($mode = 'off')
8 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'.

1 string reference to 'system_admin_compact_page'

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');
}
Login or register to post comments