diff options
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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'); |