You are here

function entity_translation_field_attach_prepare_translation_alter in Entity Translation 7

Implements hook_field_attach_prepare_translation_alter().

File

./entity_translation.module, line 2135

Code

function entity_translation_field_attach_prepare_translation_alter(&$entity, $context) {
  $handler = entity_translation_get_handler('node', $entity);
  $handler
    ->setActiveLanguage($context['langcode']);
}