aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/forum.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-19 21:40:44 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-19 21:40:44 +0000
commitb5c6d66de499a109444a226a69522c690bf3bb4e (patch)
treeafaa56757f5c4b30b97a777499a4a97617f44f69 /mod/groups/forum.php
parent251dba674e65f5742c45e777dcba78513bba7082 (diff)
downloadelgg-b5c6d66de499a109444a226a69522c690bf3bb4e.tar.gz
elgg-b5c6d66de499a109444a226a69522c690bf3bb4e.tar.bz2
Removed legacy calls from groups.
git-svn-id: http://code.elgg.org/elgg/trunk@6103 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/forum.php')
-rw-r--r--mod/groups/forum.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/mod/groups/forum.php b/mod/groups/forum.php
index 249ff17b2..32ffea2da 100644
--- a/mod/groups/forum.php
+++ b/mod/groups/forum.php
@@ -20,8 +20,16 @@
group_gatekeeper();
//get any forum topics
- $topics = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 20, 0, get_input('group_guid'), false, false, false);
- set_context('search');
+ $options = array(
+ 'type' => 'object',
+ 'subtype' => 'groupforumtopic',
+ 'annotation_name' => 'group_topic_post',
+ 'limit' => 20,
+ 'container_guid' => $group_guid,
+ 'fullview' => FALSE
+ );
+
+ $topics = elgg_list_entities_from_annotations($options);
// set up breadcrumbs
$group = get_entity($group_guid);