Manual:Hooks/AbortAutoblock
From MediaWiki.org
| AbortAutoblock | |
|---|---|
| Available from version 1.13.0 Allow extension to cancel an autoblock. |
|
*Define function: |
function fnMyHook( $autoblockip, $block ) { ... }
|
*Attach hook: |
$wgHooks['AbortAutoblock'][] = 'MyExtensionHooks::someExample'; |
| Called from: | Block.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:AbortAutoblock extensions.
[edit] Details
- $autoblockip: The IP going to be autoblocked.
- $block: The block from which the autoblock is coming.
[edit] Notes
- Return "false" to cancel an autoblock.
