hook_form_alter won't save options cck field from custom form I have created content type named "site_profile", and form named "add_website_form".
The content type includes cck fields and one of the fields is "field_operators" which is select box field.
I have hooked options of the field to display variable that contains array of specific users with some mechanism.
The hook_form_alter is:

function lcm_form_site_profile_node_form_alter(&amp;$form, &amp;$form_state, $form_id) {
    $relevant_users = lcm_get_relevant_users();
    $form['field_operators']['und']['#options'] = $relevant_users;
}  


Now I am trying to get functionality that stores data into the node through node_save() function from the "add_website_form" (costume form).

the code that supposed to insert the data is:

function lcm_add_website_form_submit($form, &amp;$form_state){
    $website_name = $form_state['values']['website_name'];
    $url = $form_state['values']['url'];
    $operators_for_site = $form_state['values']['operators_for_site'];
    lcm_add_website_form_insert_to_db($website_name, $url, $operators_for_site);
}
function lcm_add_website_form_insert_to_db($website_name, $url, $operators_for_site){
    // Create a node object, and add node properties.
    $new_website = new stdClass();

    $new_website-&gt;type = 'site_profile';
    $new_website-&gt;title = $website_name;
    $new_website-&gt;uid = $GLOBALS['user']-&gt;uid;
    $new_website-&gt;field_url['und'][0]['value'] = $url;
    $new_website-&gt;field_operators['und']['value'] = $operators_for_site;
    $new_website-&gt;created = strtotime("now");
    $new_website-&gt;changed = strtotime("now");
    $new_website-&gt;status = 1;
    $new_website-&gt;comment = 0;
    $new_website-&gt;promote = 0;
    $new_website-&gt;moderate = 0;
    $new_website-&gt;sticky = 0;
    $new_website-&gt;language = 'und';

    node_object_prepare($new_website);
    // Save the node.
    node_save($new_website);
}


the problem is that the data that supposed to save on field_operators doesn't save...
Any ideas?
Ok, new answer, replace:

$new_website-&gt;field_operators['und']['value'] = $operators_for_site;


with this

$new_website-&gt;field_operators['und'][0]['value'] = $operators_for_site;