Manual:Hooks/UserRights
From MediaWiki.org
| UserRights | |
|---|---|
| Available from version 1.6.0 Called after a user's group memberships are changed |
|
*Define function: |
function fnMyHook( $user, $add, $remove ) { ... }
|
*Attach hook: |
$wgHooks['UserRights'][] = 'fnMyHook'; |
| Called from: | SpecialUserrights.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UserRights extensions.
[edit] Details
- $user : User object that was changed
- $add : Array of strings corresponding to groups added
- $remove: Array of strings corresponding to groups removed