function system_default_region
7.x system.module | system_default_region($theme) |
6.x 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()
- system_initialize_theme_blocks in drupal-6.x/
modules/ system/ system.module - Assign an initial, default set of blocks for a theme.
File
- drupal-6.x/
modules/ system/ system.module, line 1064 - Configuration system that lets administrators modify the workings of the site.
Code
function system_default_region($theme) {
$regions = array_keys(system_region_list($theme));
return isset($regions[0]) ? $regions[0] : '';
}