aboutsummaryrefslogtreecommitdiff
path: root/pages/lists/recentlyviewed.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/lists/recentlyviewed.php')
-rw-r--r--pages/lists/recentlyviewed.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/pages/lists/recentlyviewed.php b/pages/lists/recentlyviewed.php
index b61107fc4..16ad474df 100644
--- a/pages/lists/recentlyviewed.php
+++ b/pages/lists/recentlyviewed.php
@@ -13,6 +13,15 @@
set_page_owner(get_loggedin_userid());
}
+ // allow other plugins to override the slideshow
+ $slideshow_link = trigger_plugin_hook('tp_slideshow', 'album', array(), null);
+ if ($slideshow_link) {
+ add_submenu_item(elgg_echo('album:slideshow'),
+ $slideshow_link,
+ 'photos' );
+ }
+
+
global $CONFIG;
$prefix = $CONFIG->dbprefix;
$max_limit = 200; //get extra because you'll have multiple views per image in the result set