diff options
author | Friendika <info@friendika.com> | 2011-04-11 22:47:16 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-11 22:47:16 -0700 |
commit | 6da84027afa18633ac5d5dacce99bb244be2aa7b (patch) | |
tree | fcaa525731a8b9cf0a21206faa4d52405663547e /mod/group.php | |
parent | 98712bce7622d618eecaf0a785f3664dd8648ce2 (diff) | |
download | volse-hubzilla-6da84027afa18633ac5d5dacce99bb244be2aa7b.tar.gz volse-hubzilla-6da84027afa18633ac5d5dacce99bb244be2aa7b.tar.bz2 volse-hubzilla-6da84027afa18633ac5d5dacce99bb244be2aa7b.zip |
visual display of group members
Diffstat (limited to 'mod/group.php')
-rw-r--r-- | mod/group.php | 15 |
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 |