drupal_set_html_head

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

includes/common.inc, строка 103

Версии
5 – 6
drupal_set_html_head($data = NULL)

Добавляет содержимое в тэг head в HTML коде страницы.

Эта функция может быть вызвана только до того, как посланы заголовки страницы.

▾ 6 функции вызывают drupal_set_html_head()

chameleon_page in themes/chameleon/chameleon.theme
drupal_add_link in includes/common.inc
Добавляет тег в HEAD страницы.
drupal_get_html_head in includes/common.inc
Retrieve output to be displayed in the head tag of the HTML page.
template_preprocess_maintenance_page in includes/theme.maintenance.inc
The variables generated here is a mirror of template_preprocess_page(). This preprocessor will run it's course when theme_maintenance_page() is invoked. It is also used in theme_install_page() and theme_update_page() to keep all the variables...
template_preprocess_page in includes/theme.inc
Обрабатывает переменные для page.tpl.php
_batch_progress_page_nojs in includes/batch.inc
Batch processing page without JavaScript support.

Код

<?php
function drupal_set_html_head($data = NULL) {
  static $stored_head = '';

  if (!is_null($data)) {
    $stored_head .= $data ."\n";
  }
  return $stored_head;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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