You are here

function filefield_file_listed in FileField 6.3

Return whether a file should be listed when viewing the node.

Parameters

$file: A populated FileField item.

$field: A CCK field instance array.

1 call to filefield_file_listed()
theme_filefield_item in ./filefield_formatter.inc
Theme function for any file that is managed by FileField.

File

./filefield_formatter.inc, line 102
FileField: Defines a CCK file field type.

Code

function filefield_file_listed($file, $field) {
  if (!empty($field['list_field'])) {
    return !empty($file['list']);
  }
  return TRUE;
}