Extension:MobileFrontend/Hooks/BeforePageDisplayMobile

From mediawiki.org
BeforePageDisplayMobile
Available from version 1.20.0 (Gerrit change 5146)
Allow extensions to make modifications in mobile only mode during the call to BeforePageDisplay
Define function:
public static function onBeforePageDisplayMobile( OutputPage &$output, Skin &$skin ) { ... }
Attach hook:
$wgHooks['BeforePageDisplayMobile'][] = 'MyExtensionHooks::onBeforePageDisplayMobile';
Called from:File(s): MobileFrontend / includes/MobileFrontendHooks.php
Function(s): onBeforePageDisplay

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

Details[edit]

  • &$output: An instance of OutputPage
  • &$skin: An instance of Skin