From b655b7abd16184772833be90838448155265233b Mon Sep 17 00:00:00 2001 From: Dave Tosh Date: Wed, 26 May 2010 16:32:01 +0000 Subject: videolist ownerblock menu put back git-svn-id: http://code.elgg.org@6236 36083f99-b078-4883-b0ff-0f9b5a30f544 --- start.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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'); -- cgit v1.2.3