From 2d059380821851cc5dcfcf6c32238f2856ddf991 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 23 Aug 2006 07:23:09 +0000 Subject: - Patch #66569 by m3avrck: Consolidate the drupal_add_link() calls. --- modules/blog/blog.module | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'modules/blog') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index b0227e66d..7b93d2129 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -163,12 +163,8 @@ function blog_page_user($uid) { $output .= node_view(node_load($node->nid), 1); } $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); - drupal_add_feed(url('blog/'. $account->uid .'/feed')); + drupal_add_feed(url('blog/'. $account->uid .'/feed'), t('RSS - !title', array('!title' => $title)); - drupal_add_link(array('rel' => 'alternate', - 'type' => 'application/rss+xml', - 'title' => t('RSS - !title', array('!title' => $title)), - 'href' => url("blog/$account->uid/feed"))); return $output; } else { @@ -190,12 +186,8 @@ function blog_page_last() { $output .= node_view(node_load($node->nid), 1); } $output .= theme('pager', NULL, variable_get('default_nodes_main', 10)); - drupal_add_feed(url('blog/feed')); + drupal_add_feed(url('blog/feed'), t('RSS - blogs')); - drupal_add_link(array('rel' => 'alternate', - 'type' => 'application/rss+xml', - 'title' => t('RSS - blogs'), - 'href' => url("blog/feed"))); return $output; } -- cgit v1.2.3