2 submits with same validation? I am modifying user_pass so that it also has an option to resend a user's activation email.

if($form_id=='user_pass'){
    $form['name']['#title'] = 'Email Address';
    $form['actions']['submit'] = array();
    $form['actions']['submit_reset'] = array(
        '#value' =&gt; t('Reset Password'),
        '#type' =&gt; 'submit',
        '#attributes' =&gt; array('class' =&gt; array('btn-primary', 'btn'))

    );

    //resend button
     $form['actions']['submit_resend'] = array (
        '#value' =&gt; t('Resend Activation Email'),
        '#type' =&gt; 'submit',
        '#submit' =&gt; '_mymodule_resend_activation', //gives invalid argument on foreach
        '#attributes' =&gt; array('class' =&gt; array('btn-primary', 'btn'))
    );
}


This doesn't seem to work bc I get an invalid argument for a foreach when I set the submit property for the resend button. But the reset functionality is exactly as I want it. Is there a way I can use the same validation for both submits and have a custom handler for the second one?
#submit and #validate each need to be an array:

$form['actions']['submit_resend'] = array (
  '#value' =&gt; t('Resend Activation Email'),
  '#type' =&gt; 'submit',
  '#submit' =&gt; array('_mymodule_resend_activation'),
  '#validate' =&gt; array('_mymodule_form_validate'),
  '#attributes' =&gt; array('class' =&gt; array('btn-primary', 'btn'))
);


As far as I know there aren't any limits on the number of elements that can share the same validation callback.