Manual:Hooks/UserRemoveGroup

From MediaWiki.org
Jump to: navigation, search
UserRemoveGroup
Available from version 1.18.0 (r84134)
Called when removing a group from an user.

Define function:
public static function onUserRemoveGroup( $user, &$group ) { ... }

Attach hook:
$wgHooks['UserRemoveGroup'][] = 'MyExtensionHooks::onUserRemoveGroup';
Called from: User.php

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


[edit] Details

Return false to override stock group removal.

  • $user: the user object that is to have a group removed
  • &$group: the group to be removed, can be modified
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox