function toolbar_toggle_page

7.x toolbar.module toolbar_toggle_page()

Menu callback; toggles the visibility of the toolbar drawer.

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

File

drupal-7.x/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();
}