[ticket/12260] Add core event to delete_posts() function.

Event for extensions to perform additional actions on posts deletion.

PHPBB3-12260