Manual:Hooks/BlockIp
From MediaWiki.org
| BlockIp | |
|---|---|
| Available from version 1.4.0 Occurs whenever the software receives a request to block an IP address or user |
|
*Define function: |
function fnMyHook( &$ban, &$user ) { ... }
|
*Attach hook: |
$wgHooks['BlockIp'][] = 'MyExtensionHooks::someExample'; |
| Called from: | SpecialBlockip.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:BlockIp extensions.
[edit] Details
- $block: the Block object about to be saved
- $user: the user _doing_ the block (not the one being blocked)