aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/groups/start.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index f9ea4f404..979773f50 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -32,8 +32,9 @@
// Register a page handler, so we can have nice URLs
register_page_handler('groups','groups_page_handler');
- // Register a URL handler for groups
+ // Register a URL handler for groups and forum topics
register_entity_url_handler('groups_url','group','all');
+ register_entity_url_handler('groups_groupforumtopic_url','object','groupforumtopic');
// Register an icon handler for groups
register_page_handler('groupicon','groups_icon_handler');
@@ -329,6 +330,13 @@
}
+ function groups_groupforumtopic_url($entity) {
+
+ global $CONFIG;
+ return $CONFIG->url . 'mod/groups/topicposts.php?topic='. $entity->guid .'&group_guid=' . $entity->container_guid;
+
+ }
+
/**
* Groups created, so add users to access lists.
*/