Redirect user after registration requiring administrator approval
mvc - August 17, 2007 - 17:22
| Project: | Drupal |
| Version: | 6.1 |
| Component: | user system |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
This is a 6.x version of a patch submitted against 5.x, please see description there: http://drupal.org/node/165604
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| user.module_redirect.diff | 638 bytes | Ignored | None | None |

#1
Again we need the committers review.
#2
Well, who tested this?
#3
I reviewed and committed the 5.x version. This is different enough that the review probably does not apply.
#4
After setting the to , I went and used another browser to create a new user and after registering, I was redirected back to user/register. I then went to the command line and applied the patch (as can be seen above), and after applying the patch, I'm sent to the front page when making new accounts. I do not see anything suspect in the code, and since it has already gone in for D5, I'm fairly sure there aren't any hidden traps I am not aware of. Marking RTBC.
#5
Thanks for the tests, committed!
#6
#7
How can I make custom redirect after account has been created?
I've tried redirect and destination keys, in form_alter, user hook during validate and submit and no results.
Any ideas?
#8
Ok, I found it. I've to change in form_alter something like that:
case 'user_register':$form['destination']['#value'] = 'some/page';
break;
#9