Remove user: do not delete user
Hi all. When a user want to delete from my site , for an italian privacy law (in words more and more simple), I can not delete him/her data from my DB but I can only delete his personal data (rewrite it with REMOVED is enough), but not the email because the police can ask me who write a comment or a node for some month after him/her delete him/her account. (The italian policy law is more and more "articulate"). I know that there is a hook_user() but how can I stop Drupal from deleting my user ? And I don't want the drupal change the uid associated to the nodes that the users has write, too. Tnx for all. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
Quoting Davide Michel 'ZioBudda' Morelli <michel@ziobudda.net>:
Hi all. When a user want to delete from my site , for an italian privacy law (in words more and more simple), I can not delete him/her data from my DB but I can only delete his personal data (rewrite it with REMOVED is enough), but not the email because the police can ask me who write a comment or a node for some month after him/her delete him/her account. (The italian policy law is more and more "articulate").
I know that there is a hook_user() but how can I stop Drupal from deleting my user ? And I don't want the drupal change the uid associated to the nodes that the users has write, too.
Interesting problem. You need a module to trap the Delete of the user and change it to a block_user. I don't know if a module exists already but I might even argue that a user delete should only flag the user record deleted anyway. Perhaps an enhancement for D7 to add a deleted flag in timestamp format to allow for proper administration of the user data. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Would it not be sufficient to simply block the users instead of deleting them? Earnie Boyd wrote:
Quoting Davide Michel 'ZioBudda' Morelli <michel@ziobudda.net>:
Hi all. When a user want to delete from my site , for an italian privacy law (in words more and more simple), I can not delete him/her data from my DB but I can only delete his personal data (rewrite it with REMOVED is enough), but not the email because the police can ask me who write a comment or a node for some month after him/her delete him/her account. (The italian policy law is more and more "articulate").
I know that there is a hook_user() but how can I stop Drupal from deleting my user ? And I don't want the drupal change the uid associated to the nodes that the users has write, too.
Interesting problem. You need a module to trap the Delete of the user and change it to a block_user. I don't know if a module exists already but I might even argue that a user delete should only flag the user record deleted anyway. Perhaps an enhancement for D7 to add a deleted flag in timestamp format to allow for proper administration of the user data.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
sander-martijn ha scritto:
Would it not be sufficient to simply block the users instead of deleting them?
ARGH!!!! I'm stupid!!!! The simple solutions is always the best. Tnx. :) M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
participants (3)
-
Davide Michel 'ZioBudda' Morelli -
Earnie Boyd -
sander-martijn