From bfd49157afbdcb8ecc8e204ff7ab2b246d08be57 Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 23 Feb 2009 16:56:33 +0000 Subject: 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 --- mod/groups/start.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mod/groups/start.php') 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'); -- cgit v1.2.3