toolbar_toggle_page
function toolbar_toggle_page
toolbar_toggle_page()
Menu callback; toggles the visibility of the toolbar drawer.
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(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!toolbar!toolbar.module/function/toolbar_toggle_page/7.x