You are here

function lingotek_delete_target_nodes in Lingotek Translation 7.7

1 call to lingotek_delete_target_nodes()
lingotek_node_delete in ./lingotek.module
Implements hook_node_delete().

File

./lingotek.module, line 2537

Code

function lingotek_delete_target_nodes($entity_type, $target_ids) {
  foreach ($target_ids as $id) {
    LingotekSync::delete_entity_from_metadata($entity_type, $id);
    node_delete($id);
    LingotekSync::setUploadStatus($entity_type, $id, LingotekSync::STATUS_DELETED);
  }
}