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