function _webform_submission_display_email in Webform 5
Same name and namespace in other branches
- 5.2 components/email.inc \_webform_submission_display_email()
- 6.2 components/email.inc \_webform_submission_display_email()
Display the result of a textfield submission. The output of this function will be displayed under the "results" tab then "submissions".
Parameters
$data: An array of information containing the submission result, directly correlating to the webform_submitted_data database schema.
$component: An array of information describing the component, directly correlating to the webform_component database schema.
Return value
Textual output formatted for human reading.
File
- components/
email.inc, line 109
Code
function _webform_submission_display_email($data, $component, $enabled = false) {
$form_item = _webform_render_email($component);
$form_item['#default_value'] = $data['value']['0'];
$form_item['#disabled'] = !$enabled;
return $form_item;
}