Manual:Hooks/BlockIpComplete

From MediaWiki.org
Jump to: navigation, search
BlockIpComplete
Available from version 1.4.0
Occurs after the request to block an IP or user has been processed

Define function:
public static function onBlockIpComplete( &$block, &$user ) { ... }

Attach hook:
$wgHooks['BlockIpComplete'][] = 'MyExtensionHooks::onBlockIpComplete';
Called from: SpecialBlockip.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:BlockIpComplete extensions.


Details[edit]

  • $block: the Block object that was saved
  • $user: the user who did the block (not the one being blocked)

See also[edit]