system_default_region

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/system/system.module, строка 979

Версии
5 – 6
system_default_region($theme)

Get the name of the default region for a given theme.

Параметры

$theme The name of a theme.

Возвращаемое значение

A string that is the region name.

Код

<?php
function system_default_region($theme) {
  $regions = array_keys(system_region_list($theme));
  return isset($regions[0]) ? $regions[0] : '';
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему