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 stefan.r on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x
Introduced in version:
7.51
Issue links:
Description:
system_region_list() gets a list of available regions from a specified theme. Previously, this would always take the form $region['name'] = 'description'
.
A third $labels parameter has been added (defaulting to TRUE), which specifies whether the human readable machine names should be returned or not. Calling code can set this to FALSE for better performance, if it only needs machine names.
For more information, see the system_region_list() documentation.
Impacts:
Module developers