summaryrefslogtreecommitdiff
path: root/modules/blog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-23 07:23:09 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-23 07:23:09 +0000
commit2d059380821851cc5dcfcf6c32238f2856ddf991 (patch)
treea19d796a137bcd9d9180bb9fbaf718c1f5478424 /modules/blog
parent055844e74ff3a4cb8de09db274c8260b966baac7 (diff)
downloadbrdo-2d059380821851cc5dcfcf6c32238f2856ddf991.tar.gz
brdo-2d059380821851cc5dcfcf6c32238f2856ddf991.tar.bz2
- Patch #66569 by m3avrck: Consolidate the drupal_add_link() calls.
Diffstat (limited to 'modules/blog')
-rw-r--r--modules/blog/blog.module12
1 files changed, 2 insertions, 10 deletions
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;
}