Elegant way to retrieve nodes by content type? Of course I can do something like:

$results = db_query("SELECT * FROM {node} WHERE type = '%s'", $content_type);

while ($node = db_fetch_object($results)) {
    // ...
}


But is there a more elegant way maybe?
You can just use the Views module and add a filter on the content type.