Manual:Hooks/SkinTemplateSetupPageCss

From MediaWiki.org
Jump to: navigation, search
SkinTemplateSetupPageCss
Available from version 1.6.0
Removed in version 1.19.0
Sets up the CSS for a skin

*Define function:
function fnMyHook( &$out ) { ... }

*Attach hook:
$wgHooks['SkinTemplateSetupPageCss'][] = 'MyExtensionHooks::someExample';
Called from: SkinTemplate.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:SkinTemplateSetupPageCss extensions.


[edit] Usage

Hook functions add to the skin's CSS by generating CSS and appending it to $out. They should always return true to avoid interfering with other functions attached to this hook.

Removed in 1.19.0; use BeforePageDisplay instead.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox