How to add options to a select list of a content type? I built a module that creates a form and let the user to add a variable called unit into database. Now this unit should be the options of select list of a content type. the form id of the content type is phone_book_node_form, but the problem is I can't add options to the select list. this is the firebug output of the form (content type)



the name of the select list field is field_phone_yegan. I tried this function in template.php

function MYTHEME_form_alter(&amp;$form, &amp;$form_state, $form_id){
    switch ($form_id){
        case 'phone_book_node_form':
            $form['field_phone_yegan'] = array(
                '#options' =&gt; array('yes'=&gt;t('yes'),'no'=&gt;t('no'))
            );  
            break;              
    }
}


nut nothing was added to the select list. I also tested 

$form['edit-field-phone-yegan-und'] = array(
                '#options' =&gt; array('yes'=&gt;t('yes'),'no'=&gt;t('no'))
            );  


$form['field_phone_yegan[und]'] = array(
                '#options' =&gt; array('yes'=&gt;t('yes'),'no'=&gt;t('no'))
            );  


but it didn't work. How do I can add options to this content type select list?
It sounds like using a taxonomy would be more appropriate here. Taxonomies allow lists and terms can be automatically created from user input, in this example something like the Select (or other) module would be of use. Details from project page:


  Provides a new Forms API element which is a select/radios/checkboxes element that has an 'other' option. When 'other' is selected a textfield appears for the user to provide a custom value.