aboutsummaryrefslogtreecommitdiffstats
path: root/include/group.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-01 07:56:27 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-01 07:56:27 +0200
commit2413a6b422d5c49024d9c2c9cff79cbc82ba3a56 (patch)
treec531676a196ad7defdeefd56ea2519afd4c61a44 /include/group.php
parent745d075397941e0a84d017342bb9c4c4a4c1ef5b (diff)
parentfc34641d4a69580a4e7fd5c3806c22d009d5d037 (diff)
downloadvolse-hubzilla-2413a6b422d5c49024d9c2c9cff79cbc82ba3a56.tar.gz
volse-hubzilla-2413a6b422d5c49024d9c2c9cff79cbc82ba3a56.tar.bz2
volse-hubzilla-2413a6b422d5c49024d9c2c9cff79cbc82ba3a56.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'include/group.php')
-rw-r--r--include/group.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/group.php b/include/group.php
index d1b336946..804d0c58f 100644
--- a/include/group.php
+++ b/include/group.php
@@ -185,3 +185,15 @@ function expand_groups($a) {
$ret[] = $rr['contact-id'];
return $ret;
}
+
+
+function member_of($c) {
+
+ $r = q("SELECT `group`.`name`, `group`.`id` FROM `group` LEFT JOIN `group_member` ON `group_member`.`gid` = `group`.`id` WHERE `group_member`.`contact-id` = %d AND `group`.`deleted` = 0 ORDER BY `group`.`name` ASC ",
+ intval($c)
+ );
+
+ return $r;
+
+}
+