summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-14 22:30:09 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-14 22:30:09 +0000
commit6fc2070a22cda40d174db205847dca4c214eeea6 (patch)
tree84a96893aaea2ff4dad96404acf7b12e6fabfb1d /modules/node/node.module
parent01e9b5a0f01e88e3c804cdef64676eebed56520b (diff)
downloadbrdo-6fc2070a22cda40d174db205847dca4c214eeea6.tar.gz
brdo-6fc2070a22cda40d174db205847dca4c214eeea6.tar.bz2
Patch 5114 by Kjartan:
- Adds drupal_set_header() and drupal_get_headers(). - Cache now stores custom headers. - Replace theme_head() with drupal_get_html_head(), added drupal_set_html_head(). - Added RSS autodiscover links to node, blog and taxonomy pages.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 7f1b2a532..0800cb94f 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -964,7 +964,7 @@ function node_feed($nodes = 0, $channel = array()) {
$output .= format_rss_channel($channel["title"], $channel["link"], $channel["description"], $items, $channel["language"]);
$output .= "</rss>\n";
- header("Content-Type: text/xml");
+ drupal_set_header("Content-Type: text/xml; charset=utf-8");
print $output;
}
@@ -1506,6 +1506,7 @@ function node_page() {
$output .= node_view(node_load(array("nid" => $node->nid, "type" => $node->type)), 1);
}
$output .= theme('pager', NULL, variable_get("default_nodes_main", 10));
+ drupal_set_html_head('<link rel="alternate" type="application/rss+xml" title="RSS" href="'. url('node/feed') .'">');
print theme("page", $output, "");
}
}