How to save the previously selected option in the selection box, the default value strays Please help to understand what the problem is. I created a field Select to list in the comments to type of material field values ​​I needed my, I redefined options list in the Custom Module   

$query = db_select('node', 'n')
        -&gt;fields('n', array('type', 'uid', 'title', 'nid'))
        -&gt;condition('n.type', 'brigada_type', '=');
     $result = $query-&gt;execute();
     $brigade_list = array();
        foreach($result as $value){
             $brigade_list[$value-&gt;nid] = $value-&gt;title;    
        }
        $form['field_select_brigade']['und']['#options'] = array(0 =&gt; t('- Select -')) + $brigade_list;


After I select a value from the list and create a comment I check it, and then only published but during the inspection the default value strays.

before


after
Solved the problem yourself with the help of code. It was necessary to create a handler instead comment_form_submit and create in him the values ​​of a variable_set of my field value, so, I create custom field.

    function comment_author_form_comment_form_alter(&amp;$form, &amp;$form_state, $form_id){
           if($form_id == 'comment_node_zayavka_form'){
             $query = db_select('node', 'n')
                -&gt;fields('n', array('type', 'uid', 'title', 'nid'))
                -&gt;condition('n.type', 'brigada_type', '=');
             $result = $query-&gt;execute();
             $brigade_list = array();
                foreach($result as $value){
                    //if($value-&gt;uid == $user-&gt;uid){
                     $brigade_list[] = $value-&gt;title;
                    //} 
                }
                $form['field_select_brigade_1'] = array(
                    '#type' =&gt; 'select',
                    '#title' =&gt; t('Select brigade'),
                    '#options' =&gt; $brigade_list,
                    '#description' =&gt; t('Please select the team that was sent to you with reference to this application.'),
                    '#required' =&gt; TRUE,
                    '#default_value' =&gt; variable_get('comment_field_brigade_selection'),
                );
        $form['#submit'] = array('comment_author_comment_form_submit');
        }
function comment_author_comment_form_submit($form, &amp;$form_state){
        if(isset($form_state['values']['field_select_brigade_1'])){
              variable_set('comment_field_brigade_selection', $form_state['values']['field_select_brigade_1']);
            }
        }