You are here

function quickbar_page_build in Quickbar 7

Same name and namespace in other branches
  1. 7.2 quickbar.module \quickbar_page_build()

Implements hook_page_build()

File

./quickbar.module, line 207

Code

function quickbar_page_build(&$page) {
  $links = '';
  if ($return = quickbar_available()) {

    // Obtain links for the menu items and theme them.
    $links = quickbar_menu_tree($return['menu']);
    $page['page_top']['quickbar'] = array(
      '#type' => 'markup',
      '#markup' => theme('quickbar', array(
        'tree' => $links,
        'rid' => $return['rid'],
      )),
    );
  }
}