Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Dave Reid on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x-2.x
Introduced in version:
7.x-2.0-alpha1
Issue links:
Description:
This was to make the file_view_multiple() function compatible with Entity API's entity_view() function.
Before:
$output = file_view_multiple($files, 'full');
// Return the file 10's output.
return $output[10];
After:
$output = file_view_multiple($files, 'full');
// Return the file 10's output.
return $output['files'][10];
Impacts:
Module developers