Extension:AbuseFilter/Hooks/AbuseFilter-builder

From Linux Web Expert

Revision as of 22:41, 26 June 2023 by imported>Mtarch11 (Reverted edits by Emirrkjgkkggkjfj (talk) to last version by Clump)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AbuseFilter-builder
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.

Parameters

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