function og_group_child_nids in Organic groups 5.3
Same name and namespace in other branches
- 5.8 og.module \og_group_child_nids()
- 5 og.module \og_group_child_nids()
- 5.7 og.module \og_group_child_nids()
- 6.2 og.module \og_group_child_nids()
- 6 og.module \og_group_child_nids()
1 call to og_group_child_nids()
File
- ./
og.module, line 1596
Code
function og_group_child_nids($group_nid) {
$result = db_query('SELECT oga.nid FROM {og_ancestry} oga WHERE oga.group_nid = %d', $group_nid);
$child_nids = array();
while ($row = db_fetch_object($result)) {
$child_nids[] = $row->nid;
}
return $child_nids;
}