| 7 file.field.inc | file_field_displayed($item, $field) |
| 8 file.field.inc | file_field_displayed($item, $field) |
Determines whether a file should be displayed when outputting field content.
Parameters
$item: A field item array.
$field: A field array.
Return value
Boolean TRUE if the file will be displayed, FALSE if the file is hidden.
1 call to file_field_displayed()
File
- modules/
file/ file.field.inc, line 371 - Field module functionality for the File module.
Code
function file_field_displayed($item, $field) {
if (!empty($field['settings']['display_field'])) {
return (bool) $item['display'];
}
return TRUE;
}
Login or register to post comments