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.
This commit is contained in:
Tim Almdal
2009-06-12 06:58:53 -07:00
parent fcddeefa59
commit e5793b5b26
3 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -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");