You are here

function devel_get_nodes in Devel 5

1 call to devel_get_nodes()
devel_generate_content in ./devel_generate.inc

File

./devel_generate.inc, line 397

Code

function devel_get_nodes($nid = 0) {
  $nodes = array();
  $result = db_query("SELECT nid, type FROM {node} WHERE type IN ('story', 'blog', 'forum', 'page') AND comment = 2 AND nid > %d", $nid);
  while ($node = db_fetch_object($result)) {
    $nodes[$node->nid] = $node->type;
  }
  return $nodes;
}