Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2014 at 18:12 UTC
Updated:
24 May 2021 at 08:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dustin.silva commentedI think the "+Add user" option is indeed confusing and should probably be removed from the "cancel account" modal. I will consult with a few Drupal friends of mine and see what they think our options are.
In my opinion, it makes no sense to click on "+Add user" while on the "cancel account" modal, unless the admin decided not to cancel those accounts, therefore, I see no reason to return to the cancel account modal.
Comment #2
dustin.silva commentedOnce the related issue is taken care of (adding options to menu_local_action items) we can add a css tag and effectively hide the 'Add user' link on the 'cancel account' modal. Thanks Mikeytown2 for the input.
Comment #3
joe-b commentedSeems to me that the most logical thing is to not have an 'Add user' menu option when you've just submitted the form to cancel user accounts. On the cancel form confirm page, there should be a single task.
Here's a patch to not show that menu local action on the cancel confirm form.
Comment #4
joe-b commentedComment #5
mikeytown2 commented#3 does look like it would do it. I was thinking of hiding it via CSS.
Comment #6
dustin.silva commentedtested #3, it works.
Comment #7
dustin.silva commentedComment #9
mikeytown2 commented3: 2177539-user-add-remove-on-cancel-3-D7.patch queued for re-testing.
Comment #10
mikeytown2 commentedTest passes. Setting to RTBC. Noted though that there is some extra white space in the patch that should be removed.
extra white space on the middle line
Comment #12
gaurav.goyal commentedpatch in #3 works fine, but there was an extra white space error in applying patch, this is fixed in the attached patch.
Comment #13
gaurav.goyal commentedComment #14
PascalAnimateur commentedIt's working here also on the confirmation page when cancelling a user.
I'm looking for a way to also remove the "Add user" action link from the VBO confirmation page (i.e. with the module admin_views).
Any idea of how to access the current vbo form step from the user_create_access function proposed in the patch from #12?
Update: I found out there si no need to check for the cancel operation, at least in my case. Explanation and revised patch available here https://www.drupal.org/node/2299973#comment-8951509
Comment #15
vikashsoni commentedApplied #12 and #3 not working getting error sharing screenshot .....
Comment #16
mitthukumawat commentedPatch #12 applied successfully for me on drupal-7.80 version. And it has removed the add user option from account cancel confirmation page.
Adding screenshot for reference.