You are here

function hook_tmgmt_before_update_node_translation_alter in Translation Management Tool 7

Alter the created node translation.

Parameters

object: $tnode translated node

object: $node source node

TMGMTJobItem: $job_item

1 invocation of hook_tmgmt_before_update_node_translation_alter()
TMGMTNodeSourcePluginController::saveTranslation in sources/node/tmgmt_node.plugin.inc
Saves a translation.

File

sources/node/tmgmt_node.api.php, line 18
Hooks provided by the node source plugin for TMGMT.

Code

function hook_tmgmt_before_update_node_translation_alter($tnode, $node, $job_item) {

  // Always store new translations as a new revision.
  $tnode->revision = 1;
}