You are here

function _webform_attachments_file in Webform 6.3

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

Implements _webform_attachments_component().

File

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

Code

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