If you modify user settings so that users can choose their own password, automatically login after registration and there's no need for administration approval then you won't be able to override the redirection after registration using $form['#redirect'] from hook_form_alter().
The patch replaces drupal_goto() with return '' in the relevant block of code in user_register_submit(). Now $form['#redirect'] works correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| user_redirect_0.patch | 759 bytes | alexis |
Comments
Comment #1
RobRoy commentedGood catch. +1
Comment #2
drummCommitted to 5. Should go in HEAD.
Comment #3
dries commentedCommitted to CVS HEAD. Thanks.
Comment #4
(not verified) commented