Extension:MobileFrontend/MobileSpecialPageStyles

From MediaWiki.org
Jump to navigation Jump to search
MobileSpecialPageStyles
Available from version master (Gerrit change 209545)
Allow other extensions to add styles to mobile special pages.
Define function:
public static function onMobileSpecialPageStyles( $id, $out ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"MobileSpecialPageStyles": "MyExtensionHooks::onMobileSpecialPageStyles"
	}
}

For MediaWiki ≤1.25:

$wgHooks['MobileSpecialPageStyles'][] = 'MyExtensionHooks::onMobileSpecialPageStyles';
Called from:File(s): MobileFrontend extension/MobileSpecialPage.php

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

Details[edit]