You are here

function _webform_submit_file in Webform 7.3

Same name and namespace in other branches
  1. 5.2 components/file.inc \_webform_submit_file()
  2. 5 components/file.inc \_webform_submit_file()
  3. 6.3 components/file.inc \_webform_submit_file()
  4. 6.2 components/file.inc \_webform_submit_file()
  5. 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 : '';
  }
}