function webform_get_file in Webform 7.4
Same name and namespace in other branches
- 6.3 components/file.inc \webform_get_file()
- 7.3 components/file.inc \webform_get_file()
Helper function to load a file from the database.
8 calls to webform_get_file()
- webform_file_process_rename in components/
file.inc - Renames the uploaded file name using tokens.
- _webform_analysis_file in components/
file.inc - Implements _webform_analysis_component().
- _webform_attachments_file in components/
file.inc - Implements _webform_attachments_component().
- _webform_csv_data_file in components/
file.inc - Implements _webform_csv_data_component().
- _webform_delete_component in ./
webform.api.php - Delete operation for a component or submission.
File
- components/
file.inc, line 591 - Webform module file component.
Code
function webform_get_file($fid) {
// Simple check to prevent loading of NULL values, which throws an entity
// system error.
return $fid ? file_load($fid) : FALSE;
}