function _webform_display_fieldset in Webform 7.4
Same name and namespace in other branches
- 6.3 components/fieldset.inc \_webform_display_fieldset()
- 7.3 components/fieldset.inc \_webform_display_fieldset()
Implements _webform_display_component().
File
- components/
fieldset.inc, line 86 - Webform module fieldset component.
Code
function _webform_display_fieldset($component, $value, $format = 'html', $submission = array()) {
if ($format == 'text') {
$element = array(
'#title' => $component['name'],
'#weight' => $component['weight'],
'#theme_wrappers' => array(
'webform_element_text',
),
'#translatable' => array(
'title',
),
);
}
else {
$element = _webform_render_fieldset($component, $value);
}
$element['#format'] = $format;
return $element;
}