Determines the current state of the toolbar drawer's visibility.

Return value

TRUE when drawer is collapsed, FALSE when it is expanded.

3 calls to _toolbar_is_collapsed()
toolbar_preprocess_html in modules/toolbar/toolbar.module
Implements hook_preprocess_html().
toolbar_toggle_page in modules/toolbar/toolbar.module
Menu callback; toggles the visibility of the toolbar drawer.
toolbar_view in modules/toolbar/toolbar.module
Builds the admin menu as a structured array ready for drupal_render().

File

modules/toolbar/toolbar.module, line 113
Administration toolbar for quick access to top level administration items.

Code

function _toolbar_is_collapsed() {

  // PHP converts dots into underscores in cookie names to avoid problems with
  // its parser, so we use a converted cookie name.
  return isset($_COOKIE['Drupal_toolbar_collapsed']) ? $_COOKIE['Drupal_toolbar_collapsed'] : 0;
}