Unable to redirect after user_save I am unable to redirect back to the page after executing the user_save. Following is my code snippet:

//if the response code is failed rollback the user changes and redirect
if ($results['code']!=200) {
  user_save(NULL,$account);
  drupal_goto("/admin/people");
}
Please check the below format:

function mymodule_form_alter(&amp;$form, $form_state, $form_id) {
  if ($form_id === 'form_id_goes_here') {
    // Code here
    $form['#submit'][] = '_mymodule_test_registration_submit';
  }
}

function _mymodule_test_registration_submit($form, &amp;$form_state) {
  // Code here
  $form_state['redirect'] = 'path1/path2/mypage';
}