Prev |  | Next

## 3.17. Private message system

### 3.17.1. pm_delete_folder

(Phorum 5 >= 5.2.13)

This hook can be used for working on deletion of a private message folder. E.g. for deleting messages in the folder before.

Call time:

Right before Phorum deletes the private message folder.

Hook input:

The id of the private message folder going to be deleted.

Hook output:

Same as input.

Example code:

    function phorum_mod_foo_pm_delete_folder($folder_id)
    {
        // do something with the folder going to be deleted

        return $folder_id;
    }

Prev | Up | Next
| Home |