aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/languages/en.php2
-rw-r--r--mod/groups/start.php17
2 files changed, 18 insertions, 1 deletions
diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php
index 04794e91f..91928d862 100644
--- a/mod/groups/languages/en.php
+++ b/mod/groups/languages/en.php
@@ -104,7 +104,7 @@
*/
'group:replies' => 'Replies',
- 'groups:forum' => 'Group discussion',
+ 'groups:forum' => 'Discussion',
'groups:addtopic' => 'Add a topic',
'groups:forumlatest' => 'Latest discussion',
'groups:latestdiscussion' => 'Latest discussion',
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