diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-23 16:56:33 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-23 16:56:33 +0000 |
commit | bfd49157afbdcb8ecc8e204ff7ab2b246d08be57 (patch) | |
tree | 4aa38bfe70a4054f9f2fe5645b2d18e9fc7f7c94 /mod/groups/start.php | |
parent | 9d230309a4a8494ec7c409fd045def5ab918c378 (diff) | |
download | elgg-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.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');
|