How to get node ids of certain content type in Drupal.
Source code viewer$result = db_query("SELECT nid FROM node WHERE type = 'content_type_machine_name'"); foreach ($result as $record){ echo $record->nid;}Programming Language: PHP