Extension:MobileFrontend/MobileSiteOutputPageBeforeExec

From MediaWiki.org
Jump to navigation Jump to search
MobileSiteOutputPageBeforeExec
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/MobileFrontend.skin.hooks.php

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

Details[edit]

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