aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-23 16:56:33 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-23 16:56:33 +0000
commitbfd49157afbdcb8ecc8e204ff7ab2b246d08be57 (patch)
tree4aa38bfe70a4054f9f2fe5645b2d18e9fc7f7c94 /mod/groups/start.php
parent9d230309a4a8494ec7c409fd045def5ab918c378 (diff)
downloadelgg-bfd49157afbdcb8ecc8e204ff7ab2b246d08be57.tar.gz
elgg-bfd49157afbdcb8ecc8e204ff7ab2b246d08be57.tar.bz2
RSS for group topics, including fixes for annotation getURL() override
git-svn-id: https://code.elgg.org/elgg/trunk@2898 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php13
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.'&amp;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');