function webform_file_url in Webform 7.4
Same name and namespace in other branches
- 5.2 components/file.inc \webform_file_url()
- 6.3 components/file.inc \webform_file_url()
- 6.2 components/file.inc \webform_file_url()
- 7.3 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 581 - 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 : '';
}