function theme_horizontal_tabs in Field Group 7
Returns HTML for an element's children fieldsets as horizontal tabs.
Parameters
$variables: An associative array containing:
- element: An associative array containing the properties and children of the fieldset. Properties used: #children.
File
- ./
field_group.module, line 1489 - Fieldgroup module.
Code
function theme_horizontal_tabs($variables) {
$element = $variables['element'];
// Add required JavaScript and Stylesheet.
drupal_add_library('field_group', 'horizontal-tabs');
$output = '<h2 class="element-invisible">' . (!empty($element['#title']) ? $element['#title'] : t('Horizontal Tabs')) . '</h2>';
$output .= '<div class="horizontal-tabs-panes">' . $element['#children'] . '</div>';
return $output;
}