system_admin_compact_mode

Versions
5 – 7
system_admin_compact_mode()

Determine if a user is in compact mode.

▾ 2 functions call system_admin_compact_mode()

theme_admin_block_content in modules/system/system.module
This function formats the content of an administrative block.
theme_admin_page in modules/system/system.module
This function formats an administrative page for viewing.

Code

modules/system/system.module, line 2180

<?php
function system_admin_compact_mode() {
  global $user;
  return (isset($user->admin_compact_mode)) ? $user->admin_compact_mode : variable_get('admin_compact_mode', FALSE);
}
?>
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.