Difference between revisions of "Hooks"

From Tweeki
Jump to: navigation, search
Line 7: Line 7:
  
 
  $wgHooks['SkinTweekiStyleModules'][] = 'MyExtensionHooks::onSkinTweekiStyleModules';
 
  $wgHooks['SkinTweekiStyleModules'][] = 'MyExtensionHooks::onSkinTweekiStyleModules';
 +
 +
=== SkinTweekiAdditionalBodyClasses ===
 +
 +
public static function onSkinTweekiAdditionalBodyClasses( $skinTweeki, &$styles ) { ... }
 +
 +
$wgHooks['SkinTweekiAdditionalBodyClasses'][] = 'MyExtensionHooks::onSkinTweekiAdditionalBodyClasses';

Revision as of 07:00, 5 April 2016

SkinTweekiStyleModules

works similar to SkinVectorStyleModules

public static function onSkinTweekiStyleModules( $skinTweeki, &$styles ) { ... }
$wgHooks['SkinTweekiStyleModules'][] = 'MyExtensionHooks::onSkinTweekiStyleModules';

SkinTweekiAdditionalBodyClasses

public static function onSkinTweekiAdditionalBodyClasses( $skinTweeki, &$styles ) { ... }
$wgHooks['SkinTweekiAdditionalBodyClasses'][] = 'MyExtensionHooks::onSkinTweekiAdditionalBodyClasses';