summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.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/taxonomy/taxonomy.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/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index cc6f92ec5..40b3e3472 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -751,6 +751,8 @@ function taxonomy_page() {
$breadcrumbs[] = l(t('Home'), '');
$breadcrumbs = array_reverse($breadcrumbs);
+ drupal_set_html_head('<link rel="alternate" type="application/rss+xml" title="RSS - '. implode(' : ', $names) .'" href="'. url("taxonomy/feed/or/$taxonomy->str_tids") .'">');
+
$output = taxonomy_render_nodes(taxonomy_select_nodes($taxonomy));
print theme("page", $output, implode(', ', $names), $breadcrumbs);
break;