From 7ae14257ed961068f663fbc0889a0858f656d295 Mon Sep 17 00:00:00 2001 From: pete Date: Mon, 24 May 2010 11:51:14 +0000 Subject: Group forum link added to group ownerblock git-svn-id: http://code.elgg.org/elgg/trunk@6159 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/start.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'mod/groups/start.php') diff --git a/mod/groups/start.php b/mod/groups/start.php index 9c7e0e935..07b2d9d71 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -72,6 +72,9 @@ // Now override icons register_plugin_hook('entity:icon:url', 'group', 'groups_groupicon_hook'); + + // Register profile menu hook + register_plugin_hook('profile_menu', 'profile', 'forum_profile_menu'); } /** @@ -592,6 +595,20 @@ return $access_array; } + function forum_profile_menu($hook, $entity_type, $return_value, $params) { + global $CONFIG; + + $group_owner = page_owner_entity(); + + $return_value[] = array( + 'text' => elgg_echo('groups:forum'), + 'href' => "{$CONFIG->url}pg/groups/forum/{$group_owner->getGUID()}" + ); + + return $return_value; + } + + register_extender_url_handler('group_topicpost_url','annotation', 'group_topic_post'); // Register a handler for create groups -- cgit v1.2.3