function theme_vertical_tabs

7.x theme_vertical_tabs($variables)

Returns HTML for an element's children fieldsets as vertical tabs.


$variables: An associative array containing:

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

Related topics

8 string references to the theme hook from theme_vertical_tabs()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

block_admin_configure in drupal/modules/block/
Form constructor for the block configuration form.
drupal_common_theme in drupal/includes/
Provides theme registration for themes across .inc files.
filter_admin_format_form in drupal/modules/filter/
Form constructor for the text format add/edit form.
node_form in drupal/modules/node/
Form constructor for the node add/edit form.
node_type_form in drupal/modules/node/
Form constructor for the node type editing form.

... See full list


drupal/includes/, line 3785
Functions for form and batch generation and processing.


function theme_vertical_tabs($variables) {
  $element = $variables['element'];
  // Add required JavaScript and Stylesheet.
  drupal_add_library('system', 'drupal.vertical-tabs');

  $output = '<h2 class="element-invisible">' . t('Vertical Tabs') . '</h2>';
  $output .= '<div class="vertical-tabs-panes">' . $element['#children'] . '</div>';
  return $output;