This is a 6.x version of a patch submitted against 5.x, please see description there: http://drupal.org/node/165604

CommentFileSizeAuthor
user.module_redirect.diff638 bytesmvc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

Again we need the committers review.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Needs review

Well, who tested this?

drumm’s picture

I reviewed and committed the 5.x version. This is different enough that the review probably does not apply.

Freso’s picture

Status: Needs review » Reviewed & tested by the community

gentoo-vm drupal6 # patch -p0 < user.module_redirect.diff
patching file modules/user/user.module
Hunk #1 succeeded at 2151 (offset 592 lines).

After setting the Public registrations to Visitors can create accounts but administrator approval is required., 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.

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the tests, committed!

Anonymous’s picture

Status: Fixed » Closed (fixed)
kenorb’s picture

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?

kenorb’s picture

Ok, I found it. I've to change in form_alter something like that:

	case 'user_register':
	    $form['destination']['#value'] = 'some/page';
break;
pghimire’s picture

Version: 6.x-dev » 6.1