aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 16:32:01 +0000
committerDave Tosh <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-26 16:32:01 +0000
commitb655b7abd16184772833be90838448155265233b (patch)
tree7cbe897feda51f72334420cdf55e8f59dc35e3db /start.php
parent3120e70a9ac81643364f22435b20f5b184822f42 (diff)
downloadelgg-b655b7abd16184772833be90838448155265233b.tar.gz
elgg-b655b7abd16184772833be90838448155265233b.tar.bz2
videolist ownerblock menu put back
git-svn-id: http://code.elgg.org@6236 36083f99-b078-4883-b0ff-0f9b5a30f544
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');