Open main menu


Available from version master (Gerrit change 243226)
Enable extensions to add links to footer in mobile view.
Define function:
public static function onMobileSiteOutputPageBeforeExec( Skin &$sk, &$tpl ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"MobileSiteOutputPageBeforeExec": "MyExtensionHooks::onMobileSiteOutputPageBeforeExec"

For MediaWiki ≤1.25:

$wgHooks['MobileSiteOutputPageBeforeExec'][] = 'MyExtensionHooks::onMobileSiteOutputPageBeforeExec';
Called from:File(s): MobileFrontend extension/

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


  • &$sk: Skin object that will be used to generate the page.
  • &$tpl: Template reference.