You are here

function webform_file_url in Webform 7.3

Same name and namespace in other branches
  1. 5.2 components/file.inc \webform_file_url()
  2. 6.3 components/file.inc \webform_file_url()
  3. 6.2 components/file.inc \webform_file_url()
  4. 7.4 components/file.inc \webform_file_url()

Helper function to create proper URLs for uploaded file.

3 calls to webform_file_url()
theme_webform_display_file in components/file.inc
Format the output of text data for this component.
_webform_csv_data_file in components/file.inc
Implements _webform_csv_data_component().
_webform_table_file in components/file.inc
Implements _webform_table_component().

File

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

Code

function webform_file_url($uri) {
  if (!empty($uri)) {
    $file_url = file_create_url($uri);
  }
  return isset($file_url) ? $file_url : '';
}