Manual:Hooks/GetAutoPromoteGroups
From MediaWiki.org
| GetAutoPromoteGroups | |
|---|---|
| Available from version 1.13.0 When determining which autopromote groups a user is entitled to be in. |
|
*Define function: |
function fnMyHook( &$user, &$promote ) { ... }
|
*Attach hook: |
$wgHooks['GetAutoPromoteGroups'][] = 'fnMyHook'; |
| Called from: | Autopromote.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:GetAutoPromoteGroups extensions.
[edit] Details
- &$user: user to promote.
- &$promote: groups that will be added.