function navbar_page_build in Navbar 7
Implements hook_page_build().
Add admin navbar to the page_top region automatically.
File
- ./
navbar.module, line 240 - Administration navbar for quick access to top level administration items.
Code
function navbar_page_build(&$page) {
if (navbar_suppress(FALSE)) {
return;
}
$page['page_top']['navbar'] = array(
'#type' => 'navbar',
'#access' => user_access('access navbar'),
);
}