Entity translation - Remove translation by langcode.

Public

Entity translation - Remove translation by langcode.

Get raw version
php
  1. $node = node_load($nid);
  2. $handler = entity_translation_get_handler('node', $node);
  3. $handler->removeTranslation($langcode);
  4. field_attach_presave('node', $node);
  5. field_attach_update('node', $node);