function _webform_display_textarea in Webform 7.4
Same name and namespace in other branches
- 6.3 components/textarea.inc \_webform_display_textarea()
- 7.3 components/textarea.inc \_webform_display_textarea()
Implements _webform_display_component().
File
- components/
textarea.inc, line 156 - Webform module textarea component.
Code
function _webform_display_textarea($component, $value, $format = 'html', $submission = array()) {
return array(
'#title' => $component['name'],
'#title_display' => $component['extra']['title_display'] ? $component['extra']['title_display'] : 'before',
'#weight' => $component['weight'],
'#theme' => 'webform_display_textarea',
'#theme_wrappers' => $format == 'html' ? array(
'webform_element',
) : array(
'webform_element_text',
),
'#format' => $format,
'#value' => isset($value[0]) ? $value[0] : '',
'#translatable' => array(
'title',
'placeholder',
),
);
}