function _webform_submit_file in Webform 7.3
Same name and namespace in other branches
- 5.2 components/file.inc \_webform_submit_file()
- 5 components/file.inc \_webform_submit_file()
- 6.3 components/file.inc \_webform_submit_file()
- 6.2 components/file.inc \_webform_submit_file()
- 7.4 components/file.inc \_webform_submit_file()
Implements _webform_submit_component().
File
- components/
file.inc, line 341 - Webform module file component.
Code
function _webform_submit_file($component, $value) {
if (is_array($value)) {
return !empty($value['fid']) ? $value['fid'] : '';
}
else {
return !empty($value) ? $value : '';
}
}