summaryrefslogtreecommitdiff
path: root/modules/gallery
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-11 00:44:34 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-06-11 00:44:34 -0700
commit1272d0837eeefb96af69bbb24a93b05cc818837f (patch)
treee5cf2e3d9d64e79e2912fa8e5a35894018e6290b /modules/gallery
parent68fd196d66e2d21f571ff3b5a673f18cd129abf9 (diff)
Changed rss_theme::sidebar_blocks to fire the event "request_feed_links" to
allow modules to contribute rss feed links to the rss sidebar block. Ticket #388.
Diffstat (limited to 'modules/gallery')
-rw-r--r--modules/gallery/helpers/gallery_event.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index aa11b7c0..b652d9a4 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -43,4 +43,8 @@ class gallery_event_Core {
module::clear_var("gallery", "choose_default_tookit");
}
}
+
+ static function request_feed_links($event_data) {
+ $event_data->feeds[t("New photos or movies")] = url::site("rss/updates");
+ }
}