Prev |  | Next

### 3.14.8. reopen_thread

This hook can be used for performing actions like sending notifications or making log entries after reopening threads.

Call time:

In `moderation.php`, right after a thread has been reopened by a moderator.

Hook input:

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

Hook output:

None

Example code:

    function phorum_mod_foo_reopen_thread($msgthd_id)
    {
        global $PHORUM;

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

Prev | Up | Next
| Home |