|
MediaWiki REL1_35
|
Stable to implement. More...

Public Member Functions | |
| onBlockIp ( $block, $user, &$reason) | |
| This hook is called before an IP address or user is blocked. | |
Stable to implement.
Definition at line 12 of file BlockIpHook.php.
| MediaWiki\Hook\BlockIpHook::onBlockIp | ( | $block, | |
| $user, | |||
| & | $reason | ||
| ) |
This hook is called before an IP address or user is blocked.
| DatabaseBlock | $block | the Block object about to be saved |
| User | $user | the user doing the block (not the one being blocked) |
| array | &$reason | if the hook is aborted, the error message to be returned in an array |
Implemented in MediaWiki\HookContainer\HookRunner.