function toolbar_page_build
7.x toolbar.module | toolbar_page_build(&$page) |
Implements hook_page_build().
Add admin toolbar to the page_top region automatically.
File
- drupal-7.x/
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(),
);
}