theme_vertical_tabs

  1. vertical_tabs
    1. 6 vertical_tabs.module
  2. drupal
    1. 8
    2. 7
Versions
6 theme_vertical_tabs($element)
7 – 8 theme_vertical_tabs($variables)

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

Parameters

$variables An associative array containing:

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

Related topics

Code

includes/form.inc, line 3579

<?php
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;
}
?>