Hooks

From Tweeki
Revision as of 07:05, 5 April 2016 by Thai (talk | contribs)
Jump to: navigation, search

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';