You are here

function system_default_region in Drupal 4

Same name and namespace in other branches
  1. 8 core/modules/system/system.module \system_default_region()
  2. 5 modules/system/system.module \system_default_region()
  3. 6 modules/system/system.module \system_default_region()
  4. 7 modules/system/system.module \system_default_region()
  5. 9 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.

2 calls to system_default_region()
block_admin_display in modules/block.module
Generate main block administration form.
system_initialize_theme_blocks in modules/system.module
Assign an initial, default set of blocks for a theme.

File

modules/system.module, line 672
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 $regions[0];
}