3.11.3. start_output

This hook gives modules a chance to apply some last minute changes to the Phorum data. You can also use this hook to call ob_start() if you need to buffer Phorum's full output (e.g. to do some post processing on the data from the ??? hook.

Note: this hook is only called for standard pages (the ones that are constructed using a header, body and footer) and not for output from scripts that do raw output like file.php, javascript.php, css.php and rss.php.

Call time:

After setting up all Phorum data, right before sending the page header template.

Hook input:

No input.

Hook output:

No output.

Example code:

function phorum_mod_foo_start_output()
{
    global $PHORUM;

    // Add some custom data to the page title.
    $title = $PHORUM['DATA']['HTML_TITLE'];
    $PHORUM['DATA']['HTML_TITLE'] = "-=| Phorum Rocks! |=- $title";
}