3 // Drupal compatibility
5 // Mark Huang <mlhuang@cs.princeton.edu>
6 // Copyright (C) 2006 The Trustees of Princeton University
11 if (!function_exists('drupal_set_title')) {
12 function drupal_set_title($title = NULL)
17 $stored_title = $title;
23 if (!function_exists('drupal_get_title')) {
24 function drupal_get_title()
26 return drupal_set_title();
30 if (!function_exists('drupal_set_html_head')) {
31 function drupal_set_html_head($data = NULL)
33 static $stored_head = '';
35 if (!is_null($data)) {
36 $stored_head .= $data ."\n";
42 if (!function_exists('drupal_get_html_head')) {
43 function drupal_get_html_head()
45 $output = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";
46 // XXX Insert CSS link here
47 return $output . drupal_set_html_head();