aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-24 17:52:09 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-24 17:52:09 +0000
commit123d1495cf0fe2b6ad0e6e7ddf5f50d3142f831d (patch)
tree92b47690c8e87fa97cbd2c29e929cebe3dc33a48 /mod/groups
parent71c6bbd6db559848c7b7428d53fbe100de589f3c (diff)
downloadelgg-123d1495cf0fe2b6ad0e6e7ddf5f50d3142f831d.tar.gz
elgg-123d1495cf0fe2b6ad0e6e7ddf5f50d3142f831d.tar.bz2
Group topics now have a friendlier URL. This will help a lot for notifications.
git-svn-id: https://code.elgg.org/elgg/trunk@2929 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-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.
*/