function theme_filefield_widget_preview in FileField 6.3
1 theme call to theme_filefield_widget_preview()
- filefield_widget_process in ./
filefield_widget.inc - An element #process callback for the filefield_widget field type.
File
- ./
filefield_widget.inc, line 491 - This file contains CCK widget related functionality.
Code
function theme_filefield_widget_preview($item) {
// Remove the current description so that we get the filename as the link.
if (isset($item['data']) && is_array($item['data']) && isset($item['data']['description'])) {
unset($item['data']['description']);
}
return '<div class="filefield-file-info">' . '<div class="filename">' . theme('filefield_file', $item) . '</div>' . '<div class="filesize">' . format_size($item['filesize']) . '</div>' . '<div class="filemime">' . $item['filemime'] . '</div>' . '</div>';
}