function theme_toolbar_item

Returns HTML for a toolbar item.

This theme function only renders the tab portion of the toolbar item. The tray portion will be rendered later.

Parameters

array $variables: An associative array containing:

  • element: An associative array containing the properties and children of the tray. Property used: tab.

See also

toolbar_pre_render_item().

theme_toolbar().

1 theme call to theme_toolbar_item()
toolbar_element_info in drupal/core/modules/toolbar/toolbar.module
Implements hook_element_info().

File

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

Code

function theme_toolbar_item(&$variables) {
  return drupal_render($variables['element']['tab']);
}