function theme_toolbar_tray_heading_wrapper

Returns HTML for prepending a heading to a toolbar 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

drupal/core/modules/toolbar/toolbar.module, line 378
Administration toolbar for quick access to top level administration items.

Code

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