Prev |  | Next

### 3.5.8. pm_before_editor

(Phorum 5 >= 5.2.15)

This hook can be used for tweaking the template data that is used for setting up the private message editor.

Call time:

Right after Phorum has formatted the template data for the editor and just before the editor template is loaded.

Hook input:

Two arguments: the private message data array and the action that is being handled (one of NULL (initial request), rpct_add, preview, posting).

Hook output:

The private message data, possibly modified.

Example code:

    function phorum_mod_foo_pm_before_editor($message)
    {
        return $message;
    }

Prev | Up | Next
| Home |