< Extension:MobileFrontend < Hooks
| MobileLicenseLink | |
|---|---|
| Available from version 1.23.0 (Gerrit change 120745) Allow other extensions (for example, WikimediaMessages) to override the mobile license link |
|
| Define function: | public static function onMobileLicenseLink( string &$link, string $context, array $attribs, string &$msg ) { ... }
|
| Attach hook: | $wgHooks['MobileLicenseLink'][] = 'MyExtensionHooks::onMobileLicenseLink';
|
| Called from: | File(s): MobileFrontend / includes/MobileFrontendSkinHooks.php Function(s): getLicense |
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:MobileLicenseLink extensions.
Parameters
&$link: Astringrepresenting the HTML link to the license page$context: Astringrepresenting the context in which the license link appears, e.g.'footer','editor','talk', or'upload'.$attribs: An associativearrayof extra HTML attributes to add to the link&$msg: Astringrepresenting a message key. Defaults to'mobile-frontend-copyright'
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.