I created a helper module to try to hook into

function user_pass_submit($form, &$form_state) {
  global $language;

  $account = $form_state['values']['account'];
  // Mail one time login URL and instructions using current language.
  _user_mail_notify('password_reset', $account, $language);
  watchdog('user', 'Password reset instructions mailed to %name at %email.', array('%name' => $account->name, '%email' => $account->mail));
  drupal_set_message(t('Further instructions have been sent to your e-mail address.'));

  $form_state['redirect'] = 'user';
  return;
}

I would like to change $form_state['redirect'] = 'user' to redirect to some arbitrary node. How do I do that without hacking core?

Moreover, niether the watchdog nor drupal_set_message are set. What gives?

Comments

nevets’s picture

You might want to look at the Login Toboggan module.