You are here

function content_prepare_translation in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 content.module \content_prepare_translation()
  2. 6 content.module \content_prepare_translation()

Implementation of hook_nodeapi 'prepare translation' op.

Generate field render arrays.

File

./content.module, line 405
Allows administrators to associate custom fields to content types.

Code

function content_prepare_translation(&$node) {
  $default_additions = _content_field_invoke_default('prepare translation', $node);
  $additions = _content_field_invoke('prepare translation', $node);

  // Merge module additions after the default ones to enable overriding
  // of field values.
  $node = (object) array_merge((array) $node, $default_additions, $additions);
}