Manual:Hooks/BlockIpComplete
From MediaWiki.org
| BlockIpComplete | |
|---|---|
| Available from version 1.4.0 Occurs after the request to block an IP or user has been processed |
|
*Define function: |
function fnMyHook( &$block, &$user ) { ... }
|
*Attach hook: |
$wgHooks['BlockIpComplete'][] = 'MyExtensionHooks::someExample'; |
| Called from: | SpecialBlockip.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:BlockIpComplete extensions.
[edit] Details
- $block: the Block object that was saved
- $user: the user who did the block (not the one being blocked)
