function system_default_region

Same name and namespace in other branches
  1. 6.x drupal-6.x/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 drupal-7.x/modules/block/block.module
Assigns an initial, default set of blocks for a theme.

Archivo

drupal-7.x/modules/system/system.module, line 2727
Configuration system that lets administrators modify the workings of the site.

Código

function system_default_region($theme) {
  $regions = array_keys(system_region_list($theme, REGIONS_VISIBLE));
  return isset($regions[0]) ? $regions[0] : '';
}