Manual:Hooks/SpecialUserRightsChangeableGroups
SpecialUserRightsChangeableGroups | |
---|---|
Available from version 1.45.0 (Gerrit change 1143669) called on checking changeable groups in SpecialUserRights | |
Define function: | public static function onSpecialUserRightsChangeableGroups( MediaWiki\Permissions\Authority $authority,
MediaWiki\User\UserIdentity $target,
array $addableGroups,
array &$unaddableGroups ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SpecialUserRightsChangeableGroups": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialUserRightsChangeableGroups"
}
}
|
Called from: | File(s): specials/SpecialUserRights.phpCategory:MediaWiki hooks included in SpecialUserRights.php#SpecialUserRightsChangeableGroups |
Interface: | SpecialUserRightsChangeableGroupsHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialUserRightsChangeableGroups extensions.