function system_admin_compact_page in Drupal 7
Same name and namespace in other branches
- 5 modules/system/system.module \system_admin_compact_page()
- 6 modules/system/system.admin.inc \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 - Implements hook_menu().
File
- modules/
system/ system.module, line 2966 - 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();
}