Manual:Hooks/SkinVectorStyleModules

From MediaWiki.org
Jump to navigation Jump to search
SkinVectorStyleModules
Available from version 1.22.0 (Gerrit change 79948)
Called before Vector style modules are added to the page
Define function:
public static function onSkinVectorStyleModules( $skinVector, &$styles ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SkinVectorStyleModules": "MyExtensionHooks::onSkinVectorStyleModules"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SkinVectorStyleModules'][] = 'MyExtensionHooks::onSkinVectorStyleModules';
Called from:File(s): SkinVector.php

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

Details[edit]

  • $skinVector - SkinVector object
  • &$styles - array of Vector style modules