aboutsummaryrefslogtreecommitdiff
path: root/pages/lists/mostviewedimages.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/lists/mostviewedimages.php')
-rw-r--r--pages/lists/mostviewedimages.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/pages/lists/mostviewedimages.php b/pages/lists/mostviewedimages.php
index 1e856edc6..d945680f1 100644
--- a/pages/lists/mostviewedimages.php
+++ b/pages/lists/mostviewedimages.php
@@ -49,7 +49,15 @@
}
*/
//error_log("custom query is " . (float)(microtime(true) - $start));
-
+
+ // 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' );
+ }
+
if ($owner_guid) {
if ($owner_guid == get_loggedin_userid()) {
$title = elgg_echo("tidypics:yourmostviewed");