Prev |  | Next

### 3.15.2. after_logout

This hook can be used for performing tasks after a successful user logout and for changing the page to which the user will be redirected (by returning a different redirection URL). The user data will still be availbale in `$PHORUM["user"]` at this point.

Call time:

In `login.php`, after a logout, just before redirecting the user to a Phorum page.

Hook input:

The redirection URL.

Hook output:

Same as input.

Example code:

    function phorum_mod_foo_after_logout($url)
    {
        global $PHORUM;

        // Return to the site's main page on logout
        $url = $PHORUM["mod_foo"]["site_url"];

        return $url;
    }

Prev | Up | Next
| Home |