Difference between revisions of "Hooks"
From Tweeki
Line 12: | Line 12: | ||
add classes to the <code><body></code> tag | add classes to the <code><body></code> tag | ||
− | public static function onSkinTweekiAdditionalBodyClasses( $skinTweeki, &$ | + | public static function onSkinTweekiAdditionalBodyClasses( $skinTweeki, &$additionalBodyClasses ) { ... } |
$wgHooks['SkinTweekiAdditionalBodyClasses'][] = 'MyExtensionHooks::onSkinTweekiAdditionalBodyClasses'; | $wgHooks['SkinTweekiAdditionalBodyClasses'][] = 'MyExtensionHooks::onSkinTweekiAdditionalBodyClasses'; |
Revision as of 07:05, 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, &$additionalBodyClasses ) { ... }
$wgHooks['SkinTweekiAdditionalBodyClasses'][] = 'MyExtensionHooks::onSkinTweekiAdditionalBodyClasses';