function _webform_csv_data_textarea in Webform 6.2
Same name and namespace in other branches
- 5.2 components/textarea.inc \_webform_csv_data_textarea()
- 5 components/textarea.inc \_webform_csv_data_textarea()
- 6.3 components/textarea.inc \_webform_csv_data_textarea()
- 7.4 components/textarea.inc \_webform_csv_data_textarea()
- 7.3 components/textarea.inc \_webform_csv_data_textarea()
Return 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.
Return value
Textual output formatted for CSV, not including either prefixed or trailing commas.
File
- components/
textarea.inc, line 232 - Webform module textarea component.
Code
function _webform_csv_data_textarea($data) {
return empty($data['value']['0']) ? '' : $data['value']['0'];
}