You are here

function filefield_field_formatter in FileField 5

Same name and namespace in other branches
  1. 5.2 filefield.module \filefield_field_formatter()

File

./filefield.module, line 451
Defines a file field type.

Code

function filefield_field_formatter($field, $item, $formatter) {
  if (!isset($item['fid'])) {
    return '';
  }
  $file = _filefield_file_load($item['fid']);
  return theme('filefield', $file, $item);
}