< Extension:Translate < Hooks
| Translate:modifyMessageGroupStates | |
|---|---|
| Available from version ??? Allow hooks to change workflow states depending on the group's ID. |
|
| Define function: | public static function onTranslate_modifyMessageGroupStates( $groupId, &$conf ) { ... }
|
| Attach hook: | $wgHooks['Translate:modifyMessageGroupStates'][] = 'MyExtensionHooks::onTranslate_modifyMessageGroupStates';
|
| Called from: | File(s): Translate / messagegroups\MessageGroupBase.php, messagegroups\MessageGroupOld.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:Translate:modifyMessageGroupStates extensions.
Details
- string $groupId: ID of the current message group.
- array &$conf: Workflow states, can be modified.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.