Prev |  | Next

### 3.7.5. common

This hook gives modules a chance to override Phorum variables and settings near the end of the `common.php` script. This can be used to override the Phorum (settings) variables that are setup during this script.

Call time:

At the end of `common.php`.

Hook input:

No input.

Hook output:

No output.

Example code:

    function phorum_mod_foo_common()
    {
        global $PHORUM;

        // Override the admin email address.
        $PHORUM["system_email_from_name"] = "John Doe";
        $PHORUM["system_email_from_address"] = "John.Doe@example.com";
    }

Prev | Up | Next
| Home |