This hook can be used for performing actions based on what the message contained. It is specifically useful for altering the redirect behavior.
Call time:
In include/posting/action_post.php
, after all
the posting work is done and just before the user is redirected back
to the message list page.
Hook input:
An array containing message data.
Hook output:
Same as input.
Example code:
function phorum_mod_foo_after_post($message) { global $PHORUM; // remove the post count increment for the user in select forums if (in_array($message["forum_id"], $PHORUM["mod_foo"]["forums_to_ignore"])) { phorum_api_user_save ( array ( "user_id" => $PHORUM["user"]["user_id"], "posts" => $PHORUM["user"]["posts"] ) ); } return $message; }