Active
Project:
User Delete
Version:
6.x-1.4
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2011 at 14:36 UTC
Updated:
9 Sep 2011 at 02:23 UTC
hello,
thanks a lot for the module
it seems to fit to our needs. i would need to experience it a bit more.
however, i was wondering if there is any way to get reasons why user deleted himself. this could be handled via a webform for example, but it should happen after the used has been deleted (therefore no link would be possible between user just deleted and webform result). or?
what would you suggest?
Comments
Comment #1
ilo commentedI think a hook_form_alter will do fine for this use case, setting a 'reason' textarea as required. However requires some coding in a custom module.
Comment #2
miaoulafrite commentedokay, so that would mean that it is a NEW module? can't it be added/patched somewhere in User_delete?
if yes, i could contribute in this way i guess
Comment #3
ilo commentedI think it is not as bad idea to try to get into D8 core, otherwise I'd bet for another module to do this kind of functionality.
Comment #4
miaoulafrite commentedthanks for your feedback
the hook_form_alter is effectively a good idea when the reason is requested before deletion.
currently in the module, when a user deletes himself he is redirected to user/uid page getting a error as user does not exist anymore (this would be nice to redirect at least to homepage here)
i would prefer redirecting to a form filled with his username and some 'reason' textarea.
any suggestion on how to handle it?
EDIT: i did try with triggers / actions without success
Comment #5
miaoulafrite commentedsorry, redirection page is configurable, i just saw it but it is not effective
i try to redirect to without success
EDIT:
i'm in the case 'user_delete_reassign':
Comment #6
miaoulafrite commentedi just installed it on a fresh drupal install redirection does work
in the case i was talking about, i use PressFlow
do you use any php4 in the redirection? what could be misunderstood by pressflow during the redirection process?
thanks for your help
Comment #7
miaoulafrite commentedHello ilo,
i identified the form_id 'user_confirm_delete' where i could include this textarea field
thing is that i need to store the information that will potentially be given somewhere in the database BEFORE the user is deleted
i plan to reassign content from the deleted user to anonymous
if i understand correctly this would mean that i will have to:
1. create new table to store reason, user info and time of deletion
2. override the 'user_delete_submit' function from your module to include the writing of the above info in the newly created table
is that correct?
so far, with hook_form_alter, i only disabled fields, so i didn't add any and i do not know about table creation in drupal
i've seen that you contributed a lot of modules, if you could point some directions to help me learn about it i would be nice
thanks
Comment #8
cpliakas commentedSubscribing, as this functionality would close the gap between Jive's user deletion functionality.