feed related

This commit is contained in:
Mike Macgirvin 2010-07-14 23:04:10 -07:00
parent 43f8dd6802
commit d20e1a6f93
7 changed files with 215 additions and 63 deletions

View file

@ -150,4 +150,17 @@ EOT;
$o .= " </ul>\r\n </div>\r\n</div>";
return $o;
}
}
function expand_groups($a) {
if(! (is_array($a) && count($a)))
return array();
$groups = implode(',', $a);
$groups = dbesc($groups);
$r = q("SELECT `contact-id` FROM `group_member` WHERE `gid` IN ( $groups )");
$ret = array();
if(count($r))
foreach($r as $rr)
$ret[] = $rr['contact-id'];
return $ret;
}