You are here

function _filefield_create_icon_path in FileField 5.2

Same name and namespace in other branches
  1. 6.3 filefield.theme.inc \_filefield_create_icon_path()
  2. 6.2 filefield.theme.inc \_filefield_create_icon_path()
1 call to _filefield_create_icon_path()
_filefield_icon_path in ./filefield.module

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;
}