aboutsummaryrefslogtreecommitdiffstats
path: root/mod/group.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-13 02:26:28 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-13 02:26:28 -0700
commit323697d9dc2b321da494f1cde0f22d8052587320 (patch)
tree89d09bdb7b29fa3ad2bdf9b4ca9ceaf850f5b1f8 /mod/group.php
parentc6267a2cd2e3a731f44df9288ced508ad90c4ca3 (diff)
downloadvolse-hubzilla-323697d9dc2b321da494f1cde0f22d8052587320.tar.gz
volse-hubzilla-323697d9dc2b321da494f1cde0f22d8052587320.tar.bz2
volse-hubzilla-323697d9dc2b321da494f1cde0f22d8052587320.zip
more group editor
Diffstat (limited to 'mod/group.php')
-rw-r--r--mod/group.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/mod/group.php b/mod/group.php
index 538277a0c..57e879206 100644
--- a/mod/group.php
+++ b/mod/group.php
@@ -49,7 +49,9 @@ function group_content(&$a) {
}
-dbg(2);
+
+
+
if(($a->argc == 2) && (intval($a->argv[1]))) {
require_once('view/acl_selectors.php');
$r = q("SELECT * FROM `group` WHERE `id` = %d AND `uid` = %d LIMIT 1",
@@ -60,14 +62,21 @@ dbg(2);
notice("Group not found." . EOL );
goaway($a->get_baseurl() . '/contacts');
}
- $ret = group_get_members($r[0]['id']);
+ $group = $r[0];
+ $ret = group_get_members($group['id']);
$preselected = array();
if(count($ret)) {
foreach($ret as $p)
$preselected[] = $p['id'];
}
- $sel = contact_select('group_members_select','group_members_select',$preselected);
- $o .= $sel;
+
+ $tpl = file_get_contents('view/group_edit.tpl');
+ $o .= replace_macros($tpl, array(
+ '$gid' => $group['id'],
+ '$name' => $group['name'],
+ '$selector' => contact_select('group_members_select','group_members_select',$preselected,25)
+ ));
+
}