Form submission handler for EntityTranslationController::entityFormAlter().
Takes care of entity deletion.
function entityFormDelete($form, &$form_state) {
$form_controller = translation_entity_form_controller($form_state);
$entity = $form_controller
->getEntity($form_state);
if (count($entity
->getTranslationLanguages()) > 1) {
drupal_set_message(t('This will delete all the translations of %label.', array(
'%label' => $entity
->label(),
)), 'warning');
}
}