drupal_set_html_head

Versions
4.6 – 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 functions call drupal_set_html_head()

chameleon_page in themes/chameleon/chameleon.theme
drupal_add_js in includes/common.inc
Add a JavaScript file to the output.
drupal_add_link in includes/common.inc
Add a <link> tag to the page's 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.
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.

Code

includes/common.inc, line 103

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

  if (!is_null($data)) {
    $stored_head .= $data ."\n";
  }
  return $stored_head;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.