What version of drupal?
drupal 6: $nodes = db_query('SELECT nid FROM {node} WHERE type="%s"', $type);
drupal 7: $nodes = node_load_multiple(array(), array('type' => $type));
Nikit
- 4k
- 1
- 20
- 27