Extension:AbuseFilter/Hooks/AbuseFilter-generateUserVars

From mediawiki.org
Jump to navigation Jump to search
AbuseFilter-generateUserVars
Available from version ??? (Gerrit change 80152)

Define function:
public static function onAbuseFilter_generateUserVars( AbuseFilterVariableHolder $vars, User $user ) { ... }
Attach hook:
$wgHooks['AbuseFilter-generateUserVars'][] = 'MyExtensionHooks::onAbuseFilter_generateUserVars';
Called from:File(s): AbuseFilter / VariableGenerator.php

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

Details[edit]

  • $vars AbuseFilterVariableHolder object to add vars to
  • $user User object