3.11.4. after_header

This hook can be used for adding content to the pages that is displayed after the page header template, but before the main page content.

Call time:

After sending the page header template, but before sending the main page content.

Hook input:

No input.

Hook output:

No output.

Example code:

function phorum_mod_foo_after_header()
{
    // Only add data after the header for the index and list pages.
    if (phorum_page != 'index' && phorum_page != 'list') return;

    // Add some static notification after the header.
    print '<div style="border:1px solid orange; padding: 1em">';
    print 'Welcome to our forums!';
    print '</div>';
}