aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/views/default/widgets/a_users_groups/view.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/mod/groups/views/default/widgets/a_users_groups/view.php b/mod/groups/views/default/widgets/a_users_groups/view.php
index 687ba7251..ec74443ff 100644
--- a/mod/groups/views/default/widgets/a_users_groups/view.php
+++ b/mod/groups/views/default/widgets/a_users_groups/view.php
@@ -13,9 +13,12 @@ if (!$number) {
//the page owner
$owner = $vars['entity']->owner_guid;
-//$groups = get_users_membership($owner);
-//$groups = list_entities_from_relationship('member',$owner,false,'group','',0,$number,false,false,false);
-$groups = get_entities_from_relationship('member', $owner, false, "group", "", 0, "", $number, 0, false, 0);
+$groups = elgg_get_entities_from_relationship(array(
+ 'relationship' => 'member',
+ 'relationship_guid' => $owner,
+ 'types' => 'group',
+ 'limit' => $number,
+));
if ($groups) {