Manual:Hooks/GetAutoPromoteGroups
From Linux Web Expert
GetAutoPromoteGroups | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> When determining which autopromote groups a user is entitled to be in. | |
<translate> Define function:</translate> | public static function onGetAutoPromoteGroups( &$user, &$promote ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"GetAutoPromoteGroups": "MediaWiki\\Extension\\MyExtension\\Hooks::onGetAutoPromoteGroups"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> Autopromote.php |
<translate> Interface:</translate> | GetAutoPromoteGroupsHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:GetAutoPromoteGroups extensions</tvar>.</translate>
Details
- &$user: user to promote.
- &$promote: groups that will be added.