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 aspilicious on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
7.9
Issue links:
Description:
- In versions of Drupal 7 before 7.9, the function file_usage_list() returned an incorrect value. It was supposed to return a nested array of usage data for each use of the file, but the array only included data for one item per module and item type.
- In Drupal 7.9, this is fixed.
file_usage_list()
now returns data for all items that use the file. - Modules using
file_usage_list()
should handle multiple item/count pairs in the nested array. See the function's API documentation for details on the return value's structure.)
Impacts:
Module developers