This hook can be used to change the new message data before storing it in the database.
Call time:
In include/posting/action_post.php
, right before
storing a new message in the database.
Hook input:
An array containing message data.
Hook output:
Same as input.
Example code:
function phorum_mod_foo_before_post($message) { global $PHORUM; // Add the disclaimer to the new message body $message["body"] .= "\n".$PHORUM["DATA"]["LANG"]["mod_foo"]["Disclaimer"]; return $message; }