Manual:Hooks/UserGroupsChanged/id
Appearance
UserGroupsChanged | |
---|---|
Available from version 1.26.0 Dipanggil setelah grup pengguna diubah. | |
Define function: | public static function onUserGroupsChanged( User $user, array $added, array $removed, $performer, $reason, $oldUGMs, $newUGMs ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"UserGroupsChanged": "MediaWiki\\Extension\\MyExtension\\Hooks::onUserGroupsChanged"
}
}
|
Called from: | File(s): khusus/SpecialUserrights.php |
Interface: | UserGroupsChangedHook.php |
For more information about attaching hooks, see Manual:Pengait .
For examples of extensions using this hook, see Category:UserGroupsChanged extensions/id.