Open main menu

Extension:MobileFrontend/MobileLicenseLink

MobileLicenseLink
Available from version 1.0.0
Internal hook that allows the modification of the license displayed in the footer or editor
Define function:
public static function onMobileLicenseLink( string $link that will be applied as raw params to the $msg, MobileContext $context, array $attribs to use on the link (unused), string $msg message key to use for label for license link ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"MobileLicenseLink": "MyExtensionHooks::onMobileLicenseLink"
	}
}

For MediaWiki ≤1.25:

$wgHooks['MobileLicenseLink'][] = 'MyExtensionHooks::onMobileLicenseLink';
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:MobileLicenseLink extensions.