3.14.5. delete

This hook can be used for cleaning up anything you may have created with the post_post hook or any other hook that stored data tied to messages.

Call time:

In moderation.php, right after deleting a message from the database.

Hook input:

An array of ids for messages that have been deleted (read-only).

Hook output:

None

Example code:

function phorum_mod_foo_delete($msgthd_ids)
{
    global $PHORUM;

    // Log the deleted message ids
    foreach ($msgthd_ids as $msgthd_id) {
        $PHORUM["mod_foo"]["deleted_messages"][] = $msgthd_id;
    }
    phorum_db_update_settings(array("mod_foo" => $PHORUM["mod_foo"]));
}