You are here

function theme_navbar_tab_wrapper in Navbar 7

Returns HTML for wrapping a navbar tab.

Navbar tabs have a common styling and placement with the navbar's bar area.

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties and children of the tray. Properties used: #children and #attributes.

File

./navbar.module, line 447
Administration navbar for quick access to top level administration items.

Code

function theme_navbar_tab_wrapper(&$variables) {
  if (!empty($variables['element']['#children'])) {
    $element = $variables['element'];
    return '<div' . drupal_attributes($element['#wrapper_attributes']) . '>' . $element['#children'] . '</div>';
  }
}