You are here

function _filefield_create_icon_path in FileField 6.2

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

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