You are here

function _webform_attachments_file in Webform 7.3

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

Implements _webform_attachments_component().

File

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

Code

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

  // This is necessary until the next release of mimemail is out, see [#1388786].
  $file['filepath'] = $file['uri'];
  $files = array(
    $file,
  );
  return $files;
}