Open main menu

Manual:Hooks/SkinTemplateSetupPageCss

< Manual:Hooks

}

SkinTemplateSetupPageCss
Available from version 1.6.0
Removed in version 1.19.0
Sets up the CSS for a skin
Define function:
public static function onSkinTemplateSetupPageCss( &$out ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SkinTemplateSetupPageCss": "MyExtensionHooks::onSkinTemplateSetupPageCss"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SkinTemplateSetupPageCss'][] = 'MyExtensionHooks::onSkinTemplateSetupPageCss';
Called from:File(s): SkinTemplate.php

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

UsageEdit

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.