function translation_node_predelete

Implements hook_node_predelete().

File

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

Code

function translation_node_predelete(Node $node) {

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