| 5 system.module | system_default_region($theme) |
| 6 system.module | system_default_region($theme) |
| 7 system.module | system_default_region($theme) |
| 8 system.module | system_default_region($theme) |
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()
File
- modules/
system/ system.module, line 2738 - 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] : '';
}
Login or register to post comments