tmgmt_node.api.php 418 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Hooks provided by the node source plugin for TMGMT.
  5. */
  6. /**
  7. * Alter the created node translation.
  8. *
  9. * @param object
  10. * $tnode translated node
  11. * @param object
  12. * $node source node
  13. * @param TMGMTJobItem
  14. * $job_item
  15. */
  16. function hook_tmgmt_before_update_node_translation_alter($tnode, $node, $job_item) {
  17. // Always store new translations as a new revision.
  18. $tnode->revision = 1;
  19. }