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.


[edit] Details

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

[edit] See also

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox