Extension:Translate/Hooks/Translate:modifyMessageGroupStates

Category:Extension hooks#Translate:modifyMessageGroupStates
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): Category:Extension hooks provided by TranslateTranslate / 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.
Category:Extension hooks Category:Extension hooks provided by Translate