Maybe the hooks postdata_delete, threaddata_delete, and threadfpdata_delete, and you could check to see if the user is an admin or mod (see includes/class_dm_threadpost.php, the three delete() functions). Although I suppose that would also run your code when a mod or admin deleted their own post, so maybe you could also check THIS_SCRIPT == 'inlinemod'. There are some situations where threads and posts might be deleted other than through moderation. I'm not sure if those would be important to you, but if they are you may have to do additional checks.
|