You are here

function theme_navbar_tray_heading_wrapper in Navbar 7

Returns HTML for prepending a heading to a navbar tray.

Parameters

array $variables: An associative array containing:

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

File

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

Code

function theme_navbar_tray_heading_wrapper(&$variables) {
  $element = $variables['element'];
  if (!empty($element['#children'])) {
    $heading = '';
    if (!empty($element['#heading'])) {
      $heading = '<h3 class="navbar-tray-name element-invisible">' . $element['#heading'] . '</h3>';
    }
    return $heading . $element['#children'];
  }
}