function _filefield_create_icon_path in FileField 5.2
Same name and namespace in other branches
- 6.3 filefield.theme.inc \_filefield_create_icon_path()
- 6.2 filefield.theme.inc \_filefield_create_icon_path()
1 call to _filefield_create_icon_path()
File
- ./
filefield.module, line 1003 - Defines a file field type.
Code
function _filefield_create_icon_path($iconname, $theme = 'protocons') {
$iconpath = drupal_get_path('module', 'filefield') . '/icons/' . $theme . '/16x16/mimetypes/' . $iconname . '.png';
if (file_exists($iconpath)) {
return $iconpath;
}
return FALSE;
}