Manual:Hooks/LocalisationChecksBlacklist

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"
	}
}
Called from: File(s): ../maintenance/language/checkLanguage.inc
Function(s): getCheckBlacklist
Interface: LocalisationChecksBlacklistHook.php

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


DetailsEdit

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