_toolbar_is_collapsed
function _toolbar_is_collapsed
_toolbar_is_collapsed()
Determines the current state of the toolbar drawer's visibility.
Return value
TRUE when drawer is collapsed, FALSE when it is expanded.
File
- modules/toolbar/toolbar.module, line 108
- 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; }
© 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_is_collapsed/7.x