function _filefield_create_icon_path in FileField 6.3
Same name and namespace in other branches
- 5.2 filefield.module \_filefield_create_icon_path()
- 6.2 filefield.theme.inc \_filefield_create_icon_path()
1 call to _filefield_create_icon_path()
- _filefield_icon_path in ./
filefield.theme.inc - Given a file object, create a URL to a matching icon.
File
- ./
filefield.theme.inc, line 113 - Theme functions used for normal file output.
Code
function _filefield_create_icon_path($icon_name, $theme = NULL) {
$icons_directory = _filefield_icon_directory($theme);
$icon_path = $icons_directory . '/' . $icon_name . '.png';
if (file_exists($icon_path)) {
return $icon_path;
}
return FALSE;
}