diff options
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r-- | mod/groups/start.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php index 1b3cc2e1e..62e786f6f 100644 --- a/mod/groups/start.php +++ b/mod/groups/start.php @@ -487,6 +487,19 @@ }
+ /**
+ * Overrides topic post getURL() value.
+ *
+ */
+ function group_topicpost_url($annotation) {
+ if ($parent = get_entity($annotation->entity_guid)) {
+ global $CONFIG;
+ return $CONFIG->wwwroot . 'mod/groups/topicposts.php?topic='.$parent->guid.'&group_guid='.$parent->container_guid.'#' . $annotation->id;
+ }
+ }
+
+ register_extender_url_handler('group_topicpost_url','annotation', 'group_topic_post');
+
// Register a handler for create groups
register_elgg_event_handler('create', 'group', 'groups_create_event_listener');
|