toolbar_preprocess_html
function toolbar_preprocess_html
toolbar_preprocess_html(&$vars)
Implements hook_preprocess_html().
Add some page classes, so global page theming can adjust to the toolbar.
File
- modules/toolbar/toolbar.module, line 143
- Administration toolbar for quick access to top level administration items.
Code
function toolbar_preprocess_html(&$vars) { if (isset($vars['page']['page_top']['toolbar']) && user_access('access toolbar')) { $vars['classes_array'][] = 'toolbar'; if (!_toolbar_is_collapsed()) { $vars['classes_array'][] = 'toolbar-drawer'; } } }
© 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_preprocess_html/7.x