How to populate a select list in my custom module with the content types of the site?
I found some code in another module that did the same thing. That module had this code before that form option in the form function

$select = array();
$select[0] = '&lt;' . t('none') . '&gt;';
$nodetypes = node_type_get_types();
foreach ($nodetypes as $ntype =&gt; $nname) {
  $select[$ntype] = $nname-&gt;name;
}