function theme_multipage in Field Group 7.2
Same name and namespace in other branches
- 7 field_group.module \theme_multipage()
Returns HTML for an element's children fieldsets as multipage.
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 1261 - Fieldgroup module.
Code
function theme_multipage($variables) {
$element = $variables['element'];
// Add required JavaScript and Stylesheet.
drupal_add_library('field_group', 'multipage');
$output = '<h2 class="element-invisible">' . (!empty($element['#title']) ? $element['#title'] : t('Multipage')) . '</h2>';
$output .= '<div class="multipage-panes">';
$output .= $element['#children'];
$output .= '</div>';
return $output;
}