function filefield_handler_field_icon::render in FileField 6.3
File
- views/
filefield_handler_field_icon.inc, line 15 - Returns a file icon based on its MIME type.
Class
- filefield_handler_field_icon
- @file Returns a file icon based on its MIME type.
Code
function render($values) {
$pseudo_file = array(
'fid' => $values->{$this->aliases['fid']},
'filemime' => $values->{$this->field_alias},
'filename' => $values->{$this->aliases['filename']},
'filesize' => $values->{$this->aliases['filesize']},
);
return theme('filefield_icon', $pseudo_file);
}