function toolbar_page_build
Implements hook_page_build().
Add admin toolbar to the page_top region automatically.
File
-
modules/
toolbar/ toolbar.module, line 124
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(),
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.