Menu callback; Sets whether the admin menu is in compact mode or not.
$mode: Valid values are 'on' and 'off'.
function system_admin_compact_page($mode = 'off') {
user_cookie_save(array(
'admin_compact_mode' => $mode == 'on',
));
drupal_goto();
}