function translation_node_predelete

Implements hook_node_predelete().

File

drupal/core/modules/translation/translation.module, line 433
Manages content translations.

Code

function translation_node_predelete(EntityInterface $node) {

  // Only act if we are dealing with a content type supporting translations.
  if (translation_supported_type($node->type)) {
    translation_remove_from_set($node);
  }
}