aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-11 22:47:16 -0700
committerFriendika <info@friendika.com>2011-04-11 22:47:16 -0700
commit6da84027afa18633ac5d5dacce99bb244be2aa7b (patch)
treefcaa525731a8b9cf0a21206faa4d52405663547e /mod
parent98712bce7622d618eecaf0a785f3664dd8648ce2 (diff)
downloadvolse-hubzilla-6da84027afa18633ac5d5dacce99bb244be2aa7b.tar.gz
volse-hubzilla-6da84027afa18633ac5d5dacce99bb244be2aa7b.tar.bz2
volse-hubzilla-6da84027afa18633ac5d5dacce99bb244be2aa7b.zip
visual display of group members
Diffstat (limited to 'mod')
-rw-r--r--mod/group.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/mod/group.php b/mod/group.php
index 3ee14dd85..591c93627 100644
--- a/mod/group.php
+++ b/mod/group.php
@@ -128,11 +128,11 @@ function group_content(&$a) {
goaway($a->get_baseurl() . '/contacts');
}
$group = $r[0];
- $ret = group_get_members($group['id']);
+ $members = group_get_members($group['id']);
$preselected = array();
- if(count($ret)) {
- foreach($ret as $p)
- $preselected[] = $p['id'];
+ if(count($members)) {
+ foreach($members as $member)
+ $preselected[] = $member['id'];
}
$drop_tpl = load_view_file('view/group_drop.tpl');
@@ -156,6 +156,13 @@ function group_content(&$a) {
));
}
+
+ $o .= '<div id="group-members">';
+ foreach($members as $member) {
+ $o .= micropro($member,true,'mpgroup');
+ }
+ $o .= '</div><div id="group-members-end"></div>';
+
return $o;
} \ No newline at end of file