Manual:Hooks/LocalisationChecksBlacklist

From MediaWiki.org
Jump to navigation Jump to search
LocalisationChecksBlacklist
Available from version 1.23.0 (Gerrit change 94603)
When fetching the blacklist of localisation checks.
Define function:
public static function onLocalisationChecksBlacklist( &$blacklist ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"LocalisationChecksBlacklist": "MyExtensionHooks::onLocalisationChecksBlacklist"
	}
}

For MediaWiki ≤1.25:

$wgHooks['LocalisationChecksBlacklist'][] = 'MyExtensionHooks::onLocalisationChecksBlacklist';
Called from:File(s): ../maintenance/language/checkLanguage.inc
Function(s): getCheckBlacklist

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

Details[edit]

  • &$blacklist: array of checks to blacklist. See the bottom of checkLanguage.inc for the format of this variable.