You are here

function theme_filefield_file_formatter_generic in FileField 6.2

Theme function for the 'generic' single file formatter.

File

./filefield.formatter.inc, line 79
FileField: Defines a CCK file field type.

Code

function theme_filefield_file_formatter_generic($file, $field, $file_formatter_settings) {
  $path = $file->filepath;
  $url = file_create_url($path);
  $icon = theme('filefield_icon', $file);
  $desc = $file->description;
  return '<div class="filefield-formatter-generic">' . $icon . l($desc, $url) . '</div>';
}