Difference between revisions of "Hooks"
From Tweeki
Line 9: | Line 9: | ||
=== SkinTweekiAdditionalBodyClasses === | === SkinTweekiAdditionalBodyClasses === | ||
+ | |||
+ | add classes to the <code><body></code> tag | ||
public static function onSkinTweekiAdditionalBodyClasses( $skinTweeki, &$styles ) { ... } | public static function onSkinTweekiAdditionalBodyClasses( $skinTweeki, &$styles ) { ... } | ||
$wgHooks['SkinTweekiAdditionalBodyClasses'][] = 'MyExtensionHooks::onSkinTweekiAdditionalBodyClasses'; | $wgHooks['SkinTweekiAdditionalBodyClasses'][] = 'MyExtensionHooks::onSkinTweekiAdditionalBodyClasses'; |
Revision as of 07:01, 5 April 2016
SkinTweekiStyleModules
works similar to SkinVectorStyleModules
public static function onSkinTweekiStyleModules( $skinTweeki, &$styles ) { ... }
$wgHooks['SkinTweekiStyleModules'][] = 'MyExtensionHooks::onSkinTweekiStyleModules';
SkinTweekiAdditionalBodyClasses
add classes to the <body>
tag
public static function onSkinTweekiAdditionalBodyClasses( $skinTweeki, &$styles ) { ... }
$wgHooks['SkinTweekiAdditionalBodyClasses'][] = 'MyExtensionHooks::onSkinTweekiAdditionalBodyClasses';