theme_vertical_tabs

Versions
7
theme_vertical_tabs($variables)

Makes the element's children fieldsets be vertical tabs.

Parameters

$variables An associative array containing:

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

Return value

A themed HTML string representing the form element.

Related topics

Code

includes/form.inc, line 2615

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

  return '<div class="vertical-tabs-panes">' . $element['#children'] . '</div>';
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.