Prev |  | Next

### 3.14.7. close_thread

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

Call time:

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

Hook input:

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

Hook output:

None

Example code:

    function phorum_mod_foo_close_thread($msgthd_id)
    {
        global $PHORUM;

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

Prev | Up | Next
| Home |