This hook can be used for modifying the URL that will be used to redirect the user after posting a message.
Call time:
In include/posting/action_post.php
, after the
redirect URL has been constructed and just before the user is
redirected (back to the message list or read page.)
Hook input:
The redirect URL as the first argument and the message data as the second argument.
Hook output:
This hook must return the redirect URL to use.
Example code:
function phorum_mod_foo_after_post_redirect($url, $message) { // For some reason, we find it interesting to redirect // the user to the Disney site after posting a message. return "http://www.disney.com/"; }