Manual:Hooks/AutopromoteCondition

From MediaWiki.org
Jump to: navigation, search
AutopromoteCondition
Available from version 1.12.0
check autopromote condition for user.

*Define function:
function fnMyHook( $type, $args, $user, &$result ) { ... }

*Attach hook:
$wgHooks['AutopromoteCondition'][] = 'MyExtensionHooks::someExample';
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
Language: English  • Bahasa Indonesia • 日本語
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox