diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-11 15:44:34 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-12 21:21:55 +0800 |
commit | 4bd82c11670cf9c75ed9f9a1da31e0873a46ed9d (patch) | |
tree | 3e78461c556c7837ddf561ca894cdd0b0d70a1f6 /modules/gallery/helpers/gallery_event.php | |
parent | f578906d33234fea363bb7b893ffe23ae8c81db3 (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.
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r-- | modules/gallery/helpers/gallery_event.php | 4 |
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"); + } } |