system_default_region

Definition

system_default_region($theme)
system/system.module, line 1039

Description

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

<?php
function system_default_region($theme) {
  $regions = array_keys(system_region_list($theme));
  return $regions[0];
}
?>