Manual:Hooks/AutopromoteCondition
From MediaWiki.org
| AutopromoteCondition | |
|---|---|
| Available from version 1.12.0 check autopromote condition for user. |
|
*Define function: |
function fnMyHook( $type, $args, $user, &$result ) { ... }
|
*Attach hook: |
$wgHooks['AutopromoteCondition'][] = 'fnMyHook'; |
| Called from: | Autopromote.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:AutopromoteCondition extensions.
[edit] Details
- $type: condition type
- $args: arguments
- $user: user
- &$result: result of checking autopromote condition