You are here

function _webform_attachments_file in Webform 7.4

Same name and namespace in other branches
  1. 6.3 components/file.inc \_webform_attachments_file()
  2. 7.3 components/file.inc \_webform_attachments_file()

Implements _webform_attachments_component().

File

components/file.inc, line 488
Webform module file component.

Code

function _webform_attachments_file($component, $value) {
  $file = (array) webform_get_file($value[0]);
  $files = array(
    $file,
  );
  return $files;
}