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.
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | user_redirect.patch | 1.36 KB | webchick |
#2 | admin_user_create_0.patch | 562 bytes | webchick |
admin_user_create.patch | 584 bytes | webchick | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commenteddo 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.
Comment #2
webchickGood call.
Comment #3
Chris Johnson CreditAttribution: Chris Johnson commentedLooks perfect to me.
Comment #4
drummShouldn't we fix the (two?) place(s) where
admin/user
is hard coded inuser_register_submit()
?Comment #5
webchickYes, 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.
Comment #6
webchickComment #7
Dries CreditAttribution: Dries commentedLooks good, and works. Committed to CVS HEAD.
Comment #8
(not verified) CreditAttribution: commented