7 form.inc 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 modules/block/block.admin.inc
Form constructor for the block configuration form.
drupal_common_theme in includes/common.inc
Provides theme registration for themes across .inc files.
filter_admin_format_form in modules/filter/filter.admin.inc
Form constructor for the text format add/edit form.
node_form in modules/node/node.pages.inc
Form constructor for the node add/edit form.
node_type_form in modules/node/content_types.inc
Form constructor for the node type editing form.

... See full list


includes/form.inc, line 3872
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;