3.14. Message handling

3.14.1. posting_action_cancel_post

Allow modules to perform custom action whenever the user cancels editing of his post. This can be used to e.g. redirect the user immediately back to the edited post where he came from.

Call time:

In action_cancel.php at the end of the file when everything has been done.

Hook input:

Array containing message data.

Hook output:

Same as input.

Example code:

function phorum_mod_foo_posting_action_cancel_post ($message)
{
    global $PHORUM;

    // perform a custom redirect
    phorum_redirect_by_url($PHORUM["DATA"]["URL"]["REDIRECT"]);
}