title: Using Hook_form_alter on webform submitted values
body: <p>Drupal 7. Webforms 3.x.</p>
  
  <p>I am trying to modify a webform component value on submit.  I made a custom module called 'mos' and added this code to it.</p>
  
  <pre><code>function mos_form_alter(&amp;$form, $form_state, $form_id) { 
    if ($form_id == 'webform_client_form_43') {
        dsm($form['#node']-&gt;{'webform'}['components']['1']);
        $form['#submit'][] = 'mos_contact_us_submit';
      }
  }
  function mos_contact_us_submit($form, &amp;$form_state) {
    $form['#node']-&gt;{'webform'}['components']['1'] = 'working@mos.com';
  }
  </code></pre>
  
  <p>However when I look at the results in the database the regular, non-overridden value is stored.  Can you help let me know what I am doing wrong?</p>
  
  <p>Eventually I want to take the input value and output an email address based on what was provided (for example. 24 turns into bob@somewhere.com) But I think I can figure this part out myself.</p>