diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-14 22:30:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-14 22:30:09 +0000 |
commit | 6fc2070a22cda40d174db205847dca4c214eeea6 (patch) | |
tree | 84a96893aaea2ff4dad96404acf7b12e6fabfb1d /modules/blog/blog.module | |
parent | 01e9b5a0f01e88e3c804cdef64676eebed56520b (diff) | |
download | brdo-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/blog/blog.module')
-rw-r--r-- | modules/blog/blog.module | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/blog/blog.module b/modules/blog/blog.module index eb0a52d79..5ee3470ce 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -125,6 +125,7 @@ function blog_page_user($uid) { $output .= theme('pager', NULL, variable_get("default_nodes_main", 10)); $output .= theme('xml_icon', url("blog/feed/$account->uid")); + drupal_set_html_head('<link rel="alternate" type="application/rss+xml" title="RSS - '. $title .'" href="'. url("blog/feed/$account->uid") .'">'); print theme("page", $output, $title); } @@ -141,6 +142,7 @@ function blog_page_last() { $output .= theme('pager', NULL, variable_get("default_nodes_main", 10)); $output .= theme('xml_icon', url('blog/feed')); + drupal_set_html_head('<link rel="alternate" type="application/rss+xml" title="RSS - blogs" href="'. url('blog/feed') .'">'); print theme("page", $output); } |