Perform alterations on field_attach_prepare_translation().
This hook is invoked after the field module has performed the operation.
$entity: The entity being prepared for translation.
$context: An associative array containing:
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_field_attach_prepare_translation_alter(&$entity, $context) {
if ($context['entity_type'] == 'custom_entity_type') {
$entity->custom_field = $context['source_entity']->custom_field;
}
}