Same name and namespace in other branches
- 4.7.x includes/common.inc \drupal_set_html_head()
- 5.x includes/common.inc \drupal_set_html_head()
- 6.x includes/common.inc \drupal_set_html_head()
Add output to the head tag of the HTML page. This function can be called as long the headers aren't sent.
2 calls to drupal_set_html_head()
- 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.
File
- includes/
common.inc, line 44 - Common functions that many Drupal modules will need to reference.
Code
function drupal_set_html_head($data = NULL) {
static $stored_head = '';
if (!is_null($data)) {
$stored_head .= $data . "\n";
}
return $stored_head;
}