function theme_toolbar_tray_wrapper

Returns HTML for wrapping a toolbar tray.

Used in combination with theme_toolbar_tab() to create an association between a link tag in the administration bar and a tray.

Parameters

array $variables: An associative array containing:

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

File

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

Code

function theme_toolbar_tray_wrapper(&$variables) {
  if (!empty($variables['element']['#children'])) {
    $element = $variables['element'];
    return '<div' . new Attribute($element['#wrapper_attributes']) . '><div class="lining clearfix">' . $element['#children'] . '</div></div>';
  }
}