[RFC|Implemented] user_delete hook

These requests for events in core phpBB have been merged into 3.1/Ascraeus and will be available with the next release.
Post Reply
User avatar
nickvergessen
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany
Contact:

[RFC|Implemented] user_delete hook

Post by nickvergessen » Sun Aug 22, 2010 8:10 pm

Name: hook_user_delete
Rationale: To revert things from viewtopic.php?f=111&t=33732
Placement: includes/functions_user.php at the end
Input arguments: $mode, $user_id, $post_username, $user_row
Output format: void
Member of the Development-TeamNo Support via PM

gn#36
Registered User
Posts: 8
Joined: Mon Aug 30, 2010 9:09 pm

Re: [RFC] user_delete hook

Post by gn#36 » Mon Aug 30, 2010 10:19 pm

The same thing goes for deleting topics, forums and posts since mods may need to delete data along with it.

It may be sensible to also be able to cancel a deletion process as well, sometimes the user may only be deleted if certain circumstances are met (for example the user may have to pay his debts first and the mod is used to remind the admin of this fact, or the mod may need to remind the admin that he is trying to delete some special user that cannot be deleted, e.g. a bot user or alike). Thus a hook should be called before (for cancellation) and after deletion (for cleanup), and maybe for altering the confirmation message as well.

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC|Implemented] user_delete hook

Post by MichaelC » Thu May 31, 2012 2:51 pm

Already implemented
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

Post Reply