function theme_webform_display_file in Webform 6.3
Same name and namespace in other branches
- 7.4 components/file.inc \theme_webform_display_file()
- 7.3 components/file.inc \theme_webform_display_file()
Format the output of text data for this component
1 theme call to theme_webform_display_file()
- _webform_display_file in components/
file.inc - Implements _webform_display_component().
File
- components/
file.inc, line 505 - Webform module file component.
Code
function theme_webform_display_file($element) {
$file = $element['#value'];
$url = !empty($file) ? webform_file_url($file->filepath) : t('no upload');
return !empty($file) ? $element['#format'] == 'text' ? $url : l($file->filename, $url) : ' ';
}