aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'start.php')
-rw-r--r--start.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/start.php b/start.php
index 2a23b8850..effe3c73d 100644
--- a/start.php
+++ b/start.php
@@ -40,6 +40,8 @@ function videolist_init() {
// Register entity type
register_entity_type('object','videolist');
+
+ register_plugin_hook('profile_menu', 'profile', 'videolist_profile_menu');
}
/**
@@ -174,6 +176,17 @@ function videolist_object_notifications_intercept($hook, $entity_type, $returnva
return null;
}
+function videolist_profile_menu($hook, $entity_type, $return_value, $params) {
+ global $CONFIG;
+
+ $return_value[] = array(
+ 'text' => elgg_echo('videolist'),
+ 'href' => "{$CONFIG->url}pg/videolist/owned/{$params['owner']->username}",
+ );
+
+ return $return_value;
+}
+
// Register a handler for adding videos
register_elgg_event_handler('create', 'videolist', 'videolist_create_event_listener');