drupal_set_html_head

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

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

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

Add output to the head tag of the HTML page. This function can be called as long the headers aren't sent.

▾ 7 функции вызывают 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.
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_install_page in includes/theme.inc
theme_maintenance_page in includes/theme.inc
update_progress_page_nojs in ./update.php
Perform updates for the non-JS version and return the status page.

Код

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

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

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