function system_default_region
system_default_region($theme)
Gets the name of the default region for a given theme.
Parameters
$theme: The name of a theme.
Return value
A string that is the region name.
File
- core/modules/system/system.module, line 1173
- Configuration system that lets administrators modify the workings of the site.
Code
function system_default_region($theme) { $regions = array_keys(system_region_list($theme, REGIONS_VISIBLE)); return isset($regions[0]) ? $regions[0] : ''; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!system!system.module/function/system_default_region/8.1.x