Extension:Translate/Hooks/TranslateEventMessageMembershipChange
(Redirected from Manual:Hooks/TranslateEventMessageMembershipChange)
TranslateEventMessageMembershipChange | |
---|---|
Available from version ??? (Gerrit change 42281) When group gets new messages or loses messages |
|
Define function: | public static function onTranslateEventMessageMembershipChange( $handle, $old, $new ) { ... }
|
Attach hook: | $wgHooks['TranslateEventMessageMembershipChange'][] = 'MyExtensionHooks::onTranslateEventMessageMembershipChange';
|
Called from: | File(s): Translate / utils/MessageIndex.php Function(s): clearMessageGroupStats |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:TranslateEventMessageMembershipChange extensions.
Details
edit- MessageHandle $handle
- array $old Previous groups
- array $new Current groups