field_default_prepare_translation

function field_default_prepare_translation

field_default_prepare_translation($entity_type, $entity, $field, $instance, $langcode, &$items, $source_entity, $source_langcode)

Copies source field values into the entity to be prepared.

Parameters

$entity_type: The type of $entity; e.g. 'node' or 'user'.

$entity: The entity to be prepared for translation.

$field: The field structure for the operation.

$instance: The instance structure for $field on $entity's bundle.

$langcode: The language the entity has to be translated in.

$items: $entity->{$field['field_name']}[$langcode], or an empty array if unset.

$source_entity: The source entity holding the field values to be translated.

$source_langcode: The source language from w