function system_default_region
Same name in other branches
- 9 core/modules/system/system.module \system_default_region()
- 8.9.x core/modules/system/system.module \system_default_region()
- 10 core/modules/system/system.module \system_default_region()
- 11.x core/modules/system/system.module \system_default_region()
Get 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.
1 call to system_default_region()
- block_theme_initialize in modules/
block/ block.module - Assigns an initial, default set of blocks for a theme.
File
-
modules/
system/ system.module, line 2796
Code
function system_default_region($theme) {
$regions = system_region_list($theme, REGIONS_VISIBLE, FALSE);
return $regions ? reset($regions) : '';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.