Jump to content

Extension:GlobalBlocking/Hooks/GlobalBlockingGetRetroactiveAutoblockIPs

From mediawiki.org
GlobalBlockingGetRetroactiveAutoblockIPs
Available from version 1.43.0 (Gerrit change 1073558)
Allows modification of the information displayed in the 'Global account information' fieldset on Special:CentralAuth.
Define function:
public static function onGlobalBlockingGetRetroactiveAutoblockIPs( GlobalBlock $globalBlock, int $limit, array &$ips ) { ... }
Attach hook:
$wgHooks['GlobalBlockingGetRetroactiveAutoblockIPs'][] = 'MyExtensionHooks::onGlobalBlockingGetRetroactiveAutoblockIPs';
Called from:File(s): GlobalBlocking /

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

Parameters

[edit]
  • $globalBlock: The global block that we are performing retroactive global autoblocks for
  • $limit: The maximum number of IPs that will be retroactively autoblocked
  • &$ips: The list of IPs to retroactively autoblock. If more than $limit IPs are provided, then only the first $limit IPs will be globally autoblocked.