On this page
function toolbar_page_build
toolbar_page_build(&$page)
Implements hook_page_build().
Add admin toolbar to the page_top region automatically.
File
- modules/toolbar/toolbar.module, line 119
- Administration toolbar for quick access to top level administration items.
Code
function toolbar_page_build(&$page) {
$page['page_top']['toolbar'] = array(
'#pre_render' => array('toolbar_pre_render'),
'#access' => user_access('access toolbar'),
'toolbar_drawer' => array(),
);
}
© 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_page_build/7.x