Revision a8cee257
Added by Assos Assos almost 5 years ago
drupal7/sites/all/modules/file_entity/file_entity.file_api.inc | ||
---|---|---|
77 | 77 |
function file_view_multiple($files, $view_mode = 'full', $weight = 0, $langcode = NULL) { |
78 | 78 |
$build = array(); |
79 | 79 |
|
80 |
if (empty($files)) { |
|
81 |
return $build; |
|
82 |
} |
|
83 |
|
|
80 | 84 |
$entities_by_view_mode = entity_view_mode_prepare('file', $files, $view_mode, $langcode); |
81 | 85 |
foreach ($entities_by_view_mode as $entity_view_mode => $entities) { |
82 | 86 |
field_attach_prepare_view('file', $entities, $entity_view_mode, $langcode); |
Also available in: Unified diff
Weekly update of contrib modules