diff options
Diffstat (limited to 'mod/bookmarks/start.php')
-rw-r--r-- | mod/bookmarks/start.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/bookmarks/start.php b/mod/bookmarks/start.php index 30272bb69..ee9d4be2d 100644 --- a/mod/bookmarks/start.php +++ b/mod/bookmarks/start.php @@ -40,6 +40,8 @@ function bookmarks_init() { // Add group menu option add_group_tool_option('bookmarks',elgg_echo('bookmarks:enablebookmarks'),true); + elgg_register_plugin_hook_handler('register', 'menu:user_ownerblock', 'bookmarks_user_ownerblock_menu'); + // Extend Groups profile page elgg_extend_view('groups/tool_latest','bookmarks/group_bookmarks'); @@ -313,6 +315,14 @@ function bookmark_url($entity) { } /** + * Add a menu item to the user ownerblock + */ +function bookmarks_user_ownerblock_menu($hook, $type, $return, $params) { + $item = new ElggMenuItem('bookmarks', elgg_echo('bookmarks'), "pg/bookmarks/owner/{$params['user']->username}"); + elgg_register_menu_item('user_ownerblock', $item); +} + +/** * Returns a more meaningful message * * @param unknown_type $hook |