function commons_misc_navbar in Drupal Commons 7.3
Implements hook_navbar().
File
- modules/
commons/ commons_misc/ commons_misc.navbar.inc, line 11 - Navbar hooks implemented by the Commons Miscellaneous module.
Code
function commons_misc_navbar() {
$items = array();
// Add a link to the official commons documentation.
$items['documentation'] = array(
'#type' => 'navbar_item',
'tab' => array(
'#type' => 'link',
'#title' => t('Documentation'),
'#href' => 'https://docs.acquia.com/commons',
'#options' => array(
'attributes' => array(
'title' => t('Commons Documentation'),
'class' => array(
'navbar-icon',
'navbar-icon-help',
),
'target' => '_blank',
),
),
),
'#weight' => 20,
);
return $items;
}