diff --git a/core/includes/form.inc b/core/includes/form.inc index 4f3c198..3617a1a 100644 --- a/core/includes/form.inc +++ b/core/includes/form.inc @@ -958,7 +958,7 @@ function theme_fieldset($variables) { if (isset($element['#title_display']) && $element['#title_display'] == 'invisible') { $legend_attributes['class'][] = 'visually-hidden'; } - + // Hide box for fieldset by default. $element['#attributes']['class'][] = 'fieldset-no-border'; @@ -989,7 +989,7 @@ function theme_fieldset($variables) { * An associative array containing: * - element: An associative array containing the properties of the element. * Properties used: #attributes, #children, #collapsed, #description, #id, - * #title, #title_display. + * #title, #title_display, #value. * * @ingroup themeable */ @@ -1015,7 +1015,9 @@ function theme_details($variables) { $output .= '
' . $element['#description'] . '
'; } $output .= $element['#children']; - + if (isset($element['#value'])) { + $output .= $element['#value']; + } $output .= ''; $output .= "\n"; return $output;