(Phorum 5 >= 5.2.7)
This hook can be used for reformatting a single private message for reading.
Call time:
Right after Phorum has formatted the private message. This is primarily done when a private message read page is shown in the private message system.
Hook input:
An array, describing a single private message.
Hook output:
The same array as was used for the hook call argument, possibly with some updated fields in it. [example}
function phorum_mod_foo_pm_read($message) { // Add a notice to messages that were sent by // evil user X with user_id 666. if ($message['user_id'] == 666) { $message['subject'] .= ' <strong>EVIL!</strong>'; } return $message; }