system_default_region

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

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

Версии
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.

▾ 2 функции вызывают 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.

Код

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

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