aboutsummaryrefslogtreecommitdiff
path: root/mod/logbrowser/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/logbrowser/start.php')
-rw-r--r--mod/logbrowser/start.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/logbrowser/start.php b/mod/logbrowser/start.php
index 62beafe87..dd3c24bee 100644
--- a/mod/logbrowser/start.php
+++ b/mod/logbrowser/start.php
@@ -23,10 +23,12 @@ function logbrowser_init() {
* Add to the user hover menu
*/
function logbrowser_user_hover_menu($hook, $type, $return, $params) {
- $user = $params['user'];
+ $user = $params['entity'];
$url = "pg/admin/overview/logbrowser/?user_guid={$user->guid}";
$item = new ElggMenuItem('logbrowser', elgg_echo('logbrowser:explore'), $url);
$item->setSection('admin');
- elgg_register_menu_item('user_hover', $item);
+ $return[] = $item;
+
+ return $return;
}