Prev |  | Next

### 3.13.6. admin_css_file

This hook can be used to pull in an alternate css file for the admin screens. That's pretty much all it's useful for. This hook is allowed to change the path to the admin css files because if we didn't allow it, someone would request it.

Call time:

Just before output begins on the admin page.

Hook input:

A string containing the path to the css file which will be used for the admin page.

Hook output:

The path to the actual css file to use.

Example code:

    function phorum_mod_foo_admin_css_file($cssfile)
    {
        // Force admin screens to use the "bar.css" style sheet.
        $pieces = explode('/', $cssfile);
        $pieces[count($pieces)-1] = 'bar.css';
        $cssfile = implode('/', $pieces);
        return $cssfile;
    }

Prev | Up | Next
| Home |