[development] Trigger: After flagging the translations of a source node as outdated

developer at dropcube.com developer at dropcube.com
Fri Jan 11 06:44:00 UTC 2008


Hi,

I have been working on a patch to add a new trigger 'After flagging the 
translations of a source node as outdated'. This way, actions may be 
executed when a source post has been updated significantly and the 
translations are flagged as outdated. I think that it is a very useful 
feature for multilingual websites.

To implement this was required to create a new operation for hook_nodeapi to 
let every module know the nodes that require a re-translation. So for each 
translation of a source node,  node_invoke_nodeapi($translation, 
'retranslate') is invoked.

Translation module implement translation_hook_info() to provide description 
of the new hook operation added and to inform trigger.module about it.

Also,  translation_action_info_alter is implemented to easily add node 
related actions support for the new nodeapi operation.

Please, follow up the issue here http://drupal.org/node/207604, the code 
needs review.

Regards,
Dropcube. 



More information about the development mailing list