You are here

function system_admin_compact_page in Drupal 5

Same name and namespace in other branches
  1. 6 modules/system/system.admin.inc \system_admin_compact_page()
  2. 7 modules/system/system.module \system_admin_compact_page()
1 string reference to 'system_admin_compact_page'
system_menu in modules/system/system.module
Implementation of hook_menu().

File

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

Code

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