3.17.2. pm_delete

(Phorum 5 >= 5.2.13)

This hook can be used for working deletion of a private message.

Call time:

Right before Phorum deletes the private message.

Hook input:

The id of the private message going to be deleted.

Hook output:

Same as input.

Example code:

function phorum_mod_foo_pm_delete($pm_id)
{
    // do something with the message going to be deleted

    return $pm_id;
}