function content_prepare_translation in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 6.3 content.module \content_prepare_translation()
- 6.2 content.module \content_prepare_translation()
Nodeapi 'prepare translation' op.
Generate field render arrays.
1 call to content_prepare_translation()
- content_nodeapi in ./
content.module - Implementation of hook_nodeapi().
File
- ./
content.module, line 379 - Allows administrators to associate custom fields to content types.
Code
function content_prepare_translation(&$node) {
$additions = _content_field_invoke_default('prepare translation', $node);
$node = (object) array_merge((array) $node, $additions);
}