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.

Code

modules/system/system.module, line 2415

<?php
function system_default_region($theme) {
  $regions = array_keys(system_region_list($theme));
  return isset($regions[0]) ? $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.