function _webform_attachments_file in Webform 6.3
Same name and namespace in other branches
- 7.4 components/file.inc \_webform_attachments_file()
- 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;
}