You are here

function og_group_child_nids in Organic groups 6

Same name and namespace in other branches
  1. 5.8 og.module \og_group_child_nids()
  2. 5 og.module \og_group_child_nids()
  3. 5.3 og.module \og_group_child_nids()
  4. 5.7 og.module \og_group_child_nids()
  5. 6.2 og.module \og_group_child_nids()
1 call to og_group_child_nids()
og_node_delete_confirm_submit in ./og.module

File

./og.module, line 1905

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;
}