Jump to content

Manual:Hooks/SpecialUserRightsChangeableGroups

From mediawiki.org
SpecialUserRightsChangeableGroups
Available from version 1.45.0 (Gerrit change 1143669)
Removed in version 1.45.0 (Gerrit change 1212105)
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.php
Interface: SpecialUserRightsChangeableGroupsHook.php

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