summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/blog/blog.module12
-rw-r--r--modules/forum/forum.module7
-rw-r--r--modules/node/node.module6
-rw-r--r--modules/taxonomy/taxonomy.module7
4 files changed, 5 insertions, 27 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;
}
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 32dc7ebe1..9b5be7b12 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -930,13 +930,8 @@ function theme_forum_display($forums, $topics, $parents, $tid, $sortby, $forum_p
$output .= theme('forum_list', $forums, $parents, $tid);
if ($tid && !in_array($tid, variable_get('forum_containers', array()))) {
- drupal_add_link(array('rel' => 'alternate',
- 'type' => 'application/rss+xml',
- 'title' => 'RSS - '. $title,
- 'href' => url('taxonomy/term/'. $tid .'/0/feed')));
-
$output .= theme('forum_topic_list', $tid, $topics, $sortby, $forum_per_page);
- drupal_add_feed(url('taxonomy/term/'. $tid .'/0/feed'));
+ drupal_add_feed(url('taxonomy/term/'. $tid .'/0/feed'), 'RSS - '. $title);
}
$output .= '</div>';
}
diff --git a/modules/node/node.module b/modules/node/node.module
index 237354ab8..98505d38d 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -2257,11 +2257,7 @@ function node_page_default() {
if (db_num_rows($result)) {
$feed_url = url('rss.xml', NULL, NULL, TRUE);
- drupal_add_feed($feed_url);
- drupal_add_link(array('rel' => 'alternate',
- 'type' => 'application/rss+xml',
- 'title' => t('RSS'),
- 'href' => $feed_url));
+ drupal_add_feed($feed_url, t('RSS'));
$output = '';
while ($node = db_fetch_object($result)) {
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 18ba091b3..c0e4bc48c 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1251,13 +1251,8 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
$breadcrumbs = array_reverse($breadcrumbs);
menu_set_location($breadcrumbs);
- drupal_add_link(array('rel' => 'alternate',
- 'type' => 'application/rss+xml',
- 'title' => 'RSS - '. $title,
- 'href' => url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed')));
-
$output = taxonomy_render_nodes(taxonomy_select_nodes($tids, $terms['operator'], $depth, TRUE));
- drupal_add_feed(url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed'));
+ drupal_add_feed(url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed'), 'RSS - '. $title);
return $output;
break;