aboutsummaryrefslogtreecommitdiff
path: root/pages/viewalbum.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/viewalbum.php')
-rw-r--r--pages/viewalbum.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/pages/viewalbum.php b/pages/viewalbum.php
index b451b6993..4b3e6d703 100644
--- a/pages/viewalbum.php
+++ b/pages/viewalbum.php
@@ -31,6 +31,14 @@
add_submenu_item( sprintf(elgg_echo('album:group'),$owner->name),
$CONFIG->wwwroot . "pg/photos/owned/" . $owner->username);
}
+
+ // allow other plugins to override the slideshow
+ $slideshow_link = trigger_plugin_hook('tidypics:slideshow', 'album', $album, false);
+ if ($slideshow_link) {
+ add_submenu_item(elgg_echo('album:slideshow'),
+ $slideshow_link,
+ 'photos' );
+ }
if (can_write_to_container(0, $album->container_guid)) {
if ($owner instanceof ElggGroup) {