function theme_fieldset


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_fieldset($variables)
cle7 theme_fieldset($variables)
elmsmedia7 theme_fieldset($variables)
icor7 theme_fieldset($variables)
meedjum_blog7 theme_fieldset($variables)
mooc7 theme_fieldset($variables)

Returns HTML for a fieldset form element and its children.


$variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #attributes, #children, #collapsed, #collapsible, #description, #id, #title, #value.

Related topics

4 theme calls to theme_fieldset()
theme_date_combo in sites/all/modules/ulmus/date/date.theme
Returns HTML for a start/end date combination on form.
theme_options in sites/all/modules/ulmus/options_element/
Theme an options element.
theme_select_as_checkboxes_fieldset in sites/all/modules/ulmus/better_exposed_filters/better_exposed_filters.theme
Themes a select element as checkboxes enclosed in a collapsible fieldset.
theme_select_as_radios_fieldset in sites/all/modules/ulmus/better_exposed_filters/better_exposed_filters.theme
Themes a select element as radio buttons enclosed in a collapsible fieldset.
320 string references to the theme hook from theme_fieldset()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

accessibility_admin_filter_form in sites/all/modules/ulmus/accessibility/
Form to filter accessibility tests.
accessibility_content_admin_form in sites/all/modules/ulmus/accessibility/modules/accessibility_content/
accessibility_tests_list in sites/all/modules/ulmus/accessibility/
Form for importing tests.
adaptivetheme_form_search_form_alter in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
hook_form_FORM_ID_alter() Modify the Advanced Search Form
addanother_form_node_type_form_alter in sites/all/modules/ulmus/addanother/addanother.module
Alter content type settings to add our options.

... See full list


includes/, line 2808
Functions for form and batch generation and processing.


function theme_fieldset($variables) {
  $element = $variables['element'];
  element_set_attributes($element, array('id'));
  _form_set_class($element, array('form-wrapper'));

  $output = '<fieldset' . drupal_attributes($element['#attributes']) . '>';
  if (!empty($element['#title'])) {
    // Always wrap fieldset legends in a SPAN for CSS positioning.
    $output .= '<legend><span class="fieldset-legend">' . $element['#title'] . '</span></legend>';
  $output .= '<div class="fieldset-wrapper">';
  if (!empty($element['#description'])) {
    $output .= '<div class="fieldset-description">' . $element['#description'] . '</div>';
  $output .= $element['#children'];
  if (isset($element['#value'])) {
    $output .= $element['#value'];
  $output .= '</div>';
  $output .= "</fieldset>\n";
  return $output;