You are here

function webform_get_file in Webform 7.3

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

Helper function to load a file from the database.

7 calls to webform_get_file()
_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.
_webform_delete_file in components/file.inc
Implements _webform_delete_component().

... See full list

File

components/file.inc, line 508
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;
}