theme_closure

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

includes/theme.inc, строка 1009

Версии
5 – 6
theme_closure($main = 0)

Выполняет hook_footer() который выполняется в конце страницы и расположен после тега, закрывающего тело документа.

Параметры

$main (опционально) Текущая страница является главной страницей сайта.

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

Строка, содержащая результат вызова hook_footer().

Связанные темы

▾ 3 функции вызывают theme_closure()

chameleon_page in themes/chameleon/chameleon.theme
phptemplate_page in themes/engines/phptemplate/phptemplate.engine
Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php...
theme_page in includes/theme.inc
Return an entire Drupal page displaying the supplied content.

Код

<?php
function theme_closure($main = 0) {
  $footer = module_invoke_all('footer', $main);
  return implode("\n", $footer) . drupal_get_js('footer');
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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