You are here

function webform_node_prepare_translation in Webform 6.3

Implements hook_node_prepare_translation().

1 call to webform_node_prepare_translation()
webform_nodeapi in ./webform.module
Implements hook_nodeapi().

File

./webform.module, line 1186

Code

function webform_node_prepare_translation(&$node) {

  // Copy all Webform settings over to translated versions of this node.
  if (isset($node->translation_source)) {
    $source_node = node_load($node->translation_source->nid);
    $node->webform = $source_node->webform;
  }
}