function filefield_icon_url in FileField 6.3
Same name and namespace in other branches
- 5.2 filefield.module \filefield_icon_url()
- 6.2 filefield.module \filefield_icon_url()
Determine the most appropriate icon for the given file's mimetype.
Parameters
$file: A file object.
Return value
The URL of the icon image file, or FALSE if no icon could be found.
1 call to filefield_icon_url()
- theme_filefield_icon in ./
filefield.theme.inc - Return an image with an appropriate icon for the given file.
File
- ./
filefield.module, line 545 - FileField: Defines a CCK file field type.
Code
function filefield_icon_url($file) {
module_load_include('inc', 'filefield', 'filefield.theme');
return _filefield_icon_url($file);
}