From mediawiki.org
Available from version ??? (Gerrit change 80152)
Allows overwriting of the builder values, i.e. names and descriptions of the AbuseFilter language like variables.
Define function:
public static function onAbuseFilter_builder( array &$builder ) { ... }
Attach hook:
$wgHooks['AbuseFilter-builder'][] = 'MyExtensionHooks::onAbuseFilter_builder';
Called from:File(s): AbuseFilter / AbuseFilter.php

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:AbuseFilter-builder extensions.


  • $builder: the array in AbuseFilter::getBuilderValues() to add to.