diff options
Diffstat (limited to 'mod/tabbed_profile/views/default/profile/tabs/groups.php')
-rw-r--r-- | mod/tabbed_profile/views/default/profile/tabs/groups.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mod/tabbed_profile/views/default/profile/tabs/groups.php b/mod/tabbed_profile/views/default/profile/tabs/groups.php index 323bb61f1..f2746a655 100644 --- a/mod/tabbed_profile/views/default/profile/tabs/groups.php +++ b/mod/tabbed_profile/views/default/profile/tabs/groups.php @@ -1,10 +1,17 @@ <?php
/**
* Profile groups
- **/
-$groups = list_entities_from_relationship('member',$vars['entity']->getGUID(),false,'group','',0, $limit,false, false);
+ */
-if(!$groups) {
+$options = array(
+ 'relationship_guid' => $vars['entity']->getGUID(),
+ 'relationship' => 'member',
+ 'inverse_relationship' => false,
+ 'full_view' => false,
+);
+$groups = elgg_list_entities_from_relationship($options);
+
+if (!$groups) {
$groups = '<p>' . elgg_echo('profile:no_groups') . '</p>';
}
|