From mediawiki.org
Jump to navigation Jump to search
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.


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