You are here

function lingotek_node_delete in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 6 lingotek.module \lingotek_node_delete()
  2. 7.7 lingotek.module \lingotek_node_delete()
  3. 7.2 lingotek.module \lingotek_node_delete()
  4. 7.4 lingotek.module \lingotek_node_delete()

Implements hook_node_delete().

File

./lingotek.module, line 761

Code

function lingotek_node_delete($node) {
  $doc_id = lingotek_lingonode($node->nid, 'document_id');
  if (is_numeric($doc_id)) {
    $api = LingotekApi::instance();
    $api
      ->removeDocument($doc_id, FALSE);
  }
  LingotekSync::removeNodeInfoByNodeId($node->nid);
}