Manual:Hooks/UserIsBlockedGlobally

From MediaWiki.org
Jump to: navigation, search
UserIsBlockedGlobally
Available from version 1.14.0
Runs before User::mBlockedGlobally is set; can be used to change the blocked status of an IP address or a user

*Define function:
function fnMyHook( &$user, $ip, &$blocked ) { ... }

*Attach hook:
$wgHooks['UserIsBlockedGlobally'][] = 'MyExtensionHooks::someExample';
Called from: User.php

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


[edit] Details

  • &$user: User object
  • $ip: IP address of current user
  • &$blocked: blocked flag
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox