You are here

function path_entity_translation_delete in Entity Translation 7

Implements hook_entity_translation_delete().

File

./entity_translation.module, line 2106

Code

function path_entity_translation_delete($entity_type, $entity, $langcode) {

  // Remove any existing path alias for the removed translation.
  $handler = entity_translation_get_handler($entity_type, $entity);
  path_delete(array(
    'source' => $handler
      ->getViewPath(),
    'language' => $langcode,
  ));
}