hook_node_prepare_translation

Versions
7
hook_node_prepare_translation($node)

Act on a node object being cloned for translation.

This hook is invoked from translation_node_prepare() after the node is loaded. $node->language is set to the language being requested, and $node->translation_source is set to the node object being cloned.

Parameters

$node The node object being prepared for translation.

Related topics

Code

modules/node/node.api.php, line 440

<?php
function hook_node_prepare_translation($node) {
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.