1 form.inc | 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
File
- core/
includes/ form.inc, line 4261 - Functions for form and batch generation and processing.
Code
function theme_vertical_tabs($variables) {
$element = $variables['element'];
// Add required JavaScript and Stylesheet.
backdrop_add_library('system', 'backdrop.vertical-tabs');
$output = '<h2 class="element-invisible">' . t('Vertical Tabs') . '</h2>';
$output .= '<div class="vertical-tabs-panes">' . $element['#children'] . '</div>';
return $output;
}