You are here

function toolbar_toggle_page in Drupal 7

Menu callback; toggles the visibility of the toolbar drawer.

1 string reference to 'toolbar_toggle_page'
toolbar_menu in modules/toolbar/toolbar.module
Implements hook_menu().

File

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

Code

function toolbar_toggle_page() {
  global $base_path;

  // Toggle the value in the cookie.
  setcookie('Drupal.toolbar.collapsed', !_toolbar_is_collapsed(), NULL, $base_path);

  // Redirect the user from where he used the toggle element.
  drupal_goto();
}