| 7 toolbar.module | _toolbar_is_collapsed() |
| 8 toolbar.module | _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.
3 calls to _toolbar_is_collapsed()
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;
}
Login or register to post comments