Right now, when you go to add a user through the admin panel, it redirects you back to the list of users each time. This is tedious when you want to add multiple users, because you have to continue to click "add user" each time before filling out the form again.

This patch keeps you on the add form, and also brings the add user form more inline with other administration pages such as adding taxonomy terms, etc.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Needs work

do this like the add taxo terms page which makes sure you are directed to $_GET[q]. that makes it easier to reuse the form in another context.

webchick’s picture

Status: Needs work » Needs review
FileSize
562 bytes

Good call.

Chris Johnson’s picture

Status: Needs review » Reviewed & tested by the community

Looks perfect to me.

drumm’s picture

Status: Reviewed & tested by the community » Needs work

Shouldn't we fix the (two?) place(s) where admin/user is hard coded in user_register_submit()?

webchick’s picture

Status: Needs work » Needs review
FileSize
1.36 KB

Yes, yes we should. :)

These two return statements are no longer required with the #redirect, so I've deleted them. Tested creating a user both with and without notification, and get redirected back to admin/user/create as expected. I also created a user from the normal user/register screen and confirmed that I get redirected back to the front page as expected.

webchick’s picture

Assigned: Unassigned » webchick
Dries’s picture

Status: Needs review » Fixed

Looks good, and works. Committed to CVS HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)