Révision 9e88ab34
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/file_entity/file_entity.field.inc | ||
---|---|---|
356 | 356 |
$items = array_filter($items); |
357 | 357 |
foreach ($items as $delta => $item) { |
358 | 358 |
if (!empty($item['fid']) && ($file = file_load($item['fid'])) && file_entity_access('download', $file)) { |
359 |
if (isset($item['display'])) { |
|
360 |
$file->display = $item['display']; |
|
361 |
} |
|
362 |
if (isset($item['description'])) { |
|
363 |
$file->description = $item['description']; |
|
364 |
} |
|
359 | 365 |
$element[$delta] = array( |
360 | 366 |
'#theme' => 'file_entity_download_link', |
361 | 367 |
'#file' => $file, |
Formats disponibles : Unified diff
Weekly update of contrib modules