Prev |  | Next

## 3.8. Admin interface

### 3.8.1. admin_forum_delete

This hook is called whenever a forum is deleted.

Call time:

Right before the forum will be deleted from the database

Hook input:

The ID of the forum.

Hook output:

Same as input.

Example code:

    function phorum_mod_foo_admin_forum_delete ($id)
    {
        // E.g. Notify the external system that the forum has been deleted

        // Return forum ID for other hooks
        return $id;

    }

Prev | Up | Next
| Home |