Active
Project:
User Delete
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2010 at 13:01 UTC
Updated:
8 Oct 2010 at 07:23 UTC
Hi,
Users on my site all have a content type called 'profile'.
When they choose to delete their account, users are re-directed to /home and get an informational message that says:
"Your profile has been deleted."
And that is all. It seems strange to show this message.
It would make more sense to show "Your account has been deleted".
Can anyone help with this issue?
Thank you
Comments
Comment #1
ilo commentedThis kind of message is not shown by this module, but probably from the node module. I guess this is something related to the node they have created (is it a contrib module for user profiles or something?), but user_delete does not show any kind of messages when deleting nodes (user_delete.module:350 is commented).
Comment #2
YK85 commentedHello,
As a feature request for 6.x-2.x-dev, it would be nice if User Delete module could stop the node module from displaying that message and instead showing message "Your account as well as all associated content with your account has been deleted."
Thanks!
Comment #3
ilo commentedLets keep this one open for a while, because it does not work this way now.
Account cancelation (self deleting) is opt-out, I mean, when you click on 'cancel account' on your profile you will prompted with a confirmation form "are you sure you want to cancel your account?" and a text explaining what is going to happen, or a limited list of options that you may be able to select. When you confirm this cancelation, two things happen:
- A message is shown to the user that an email with a cancelation request has been sent
- An email with a (unique) cancelation link is sent to the user.
The final cancel operation only happens when the user goes to this link. At this point the user has started the cancelation process (it is a batch process so it can be long, as for every node, or every comment, all hooks are fired and modules may react to the deletion of each single object). The user should not be able to create or alter the content during this process, therefore this user (unless it is the admin user) has to be 'disabled' somehow, and at the end, any available session of the user is deleted. In this state, it is impossible to show any message to this user anymore.
There is however the option of sending a cancellation email, where you can configure a default email sent when the account has been canceled. Why is this email generic? becuase there are different ways to cancel the account, and they can also be modified using current API.
I think that this 'feature request' could be a better done using a different approach: disable the default account canceled email, and using a contrib module handle each cancellation method to send different email messages, but forget about showing anything to the user because its session or any additional information no longer exist.