[development] Implementing a user deletion policy

Earnie Boyd earnie at users.sourceforge.net
Mon Apr 5 11:48:13 UTC 2010

Earl Dunovant wrote:
> http://api.drupal.org/api/function/hook_user
> On Sun, Apr 4, 2010 at 12:00 PM, Steve Yelvington <steve at yelvington.com
> <mailto:steve at yelvington.com>> wrote:
>     We ran into a problem involving deleted accounts, so I'm looking
>     into implementing some tighter controls. However, it doesn't appear
>     that user_delete() is a hook, so I can't intercept it. I suppose I
>     can filter out the "delete" button, but are there any other obvious
>     solutions? I don't want to kill any kittens.
>     Also, Watchdog logs the deletion but not the ID of the user who
>     deleted the account. Seems like an oversight.

And D7 http://api.drupal.org/api/function/hook_user_delete/7 but 
consider also the hook_form_alter.

-- http://progw.com
-- http://www.for-my-kids.com

More information about the development mailing list