system_admin_compact_page

Versions
5 – 7
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'.

Code

modules/system/system.admin.inc, line 89

<?php
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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.