summaryrefslogtreecommitdiff
path: root/modules/rss
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-12 06:58:53 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-06-12 06:58:53 -0700
commite5793b5b2680cba14dda6bd0242b262baa0d00a6 (patch)
tree5ae8da30a0881ec1583de1fce7fde9c86bb05487 /modules/rss
parentfcddeefa59e3db8ebc0b394b38e9aef2ddf00371 (diff)
Change the "request_feed_links" eventing handling so that individual modules
provide the part of the url (the suffix) that they are interested in and the rss module will format the rest of the url.
Diffstat (limited to 'modules/rss')
-rw-r--r--modules/rss/helpers/rss_theme.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/rss/helpers/rss_theme.php b/modules/rss/helpers/rss_theme.php
index b433c66a..2e4e141b 100644
--- a/modules/rss/helpers/rss_theme.php
+++ b/modules/rss/helpers/rss_theme.php
@@ -40,7 +40,9 @@ class rss_theme_Core {
$event_data->feeds = array();
$event_data->item = $theme->item();
module::event("request_feed_links", $event_data);
-
+ foreach ($event_data->feeds as $key => $feed) {
+ $event_data->feeds[$key] = url::site("rss/$feed");
+ }
$block = new Block();
$block->css_id = "gRss";
$block->title = t("Available RSS Feeds");