function _filefield_create_icon_path in FileField 6.2
Same name and namespace in other branches
- 5.2 filefield.module \_filefield_create_icon_path()
- 6.3 filefield.theme.inc \_filefield_create_icon_path()
1 call to _filefield_create_icon_path()
File
- ./
filefield.theme.inc, line 121 - FileField: Defines a CCK 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;
}