system_default_region

Versions
4.7 – 7
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.

▾ 2 functions call system_default_region()

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

Code

modules/system/system.module, line 1039

<?php
function system_default_region($theme) {
  $regions = array_keys(system_region_list($theme));
  return $regions[0];
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.