Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
http://api.drupal.org/api/function/hook_user_login/7 suggest that &$edit is the $form_state that gets passed to hook_user_login, however it doesn't. here is patch for that.
Also i changed order of $form_state and user_login_finalize, giving chance to other modules alter where user gets redirected on login.
Comment | File | Size | Author |
---|---|---|---|
user_login_submit.patch | 635 bytes | litwol | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.