You are here

function coffee_navbar in Coffee 7.2

Implements hook_navbar().

File

./coffee.navbar.inc, line 11
Navbar hooks implemented by the coffee module.

Code

function coffee_navbar() {
  $items = array();
  if (user_access('access coffee')) {
    $items['coffee'] = array(
      '#type' => 'navbar_item',
      '#weight' => 200,
      'tab' => array(
        '#type' => 'link',
        '#title' => t('Go to'),
        '#href' => '<front>',
        '#options' => array(
          'attributes' => array(
            'title' => t('Use alt+d to start Coffee and search for a page to go to.'),
            'class' => array(
              'navbar-icon',
              'navbar-icon-coffee',
            ),
          ),
        ),
      ),
    );
  }
  return $items;
}