3.14.10.�hide_thread

This hook can be used for performing actions like sending notifications or making log entries after hiding a message.

Call time:

In moderation.php, right after a message has been hidden by a moderator.

Hook input:

The id of the thread that has been hidden (read-only).

Hook output:

None

Example code:

function phorum_mod_foo_hide_thread($msgthd_id)
{
    global $PHORUM;

    // Log the hidden thread id
    $PHORUM["mod_foo"]["hidden_threads"][] = $msgthd_id;
    phorum_db_update_settings(array("mod_foo" => $PHORUM["mod_foo"]));
}