You are here

function lingotek_node_delete in Lingotek Translation 7.4

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.3 lingotek.module \lingotek_node_delete()

Implements hook_node_delete().

File

./lingotek.module, line 1169

Code

function lingotek_node_delete($node) {
  $doc_id = isset($node->lingotek['document_id']) ? $node->lingotek['document_id'] : NULL;
  $api = LingotekApi::instance();
  $api
    ->removeDocument($doc_id, FALSE);
  LingotekSync::removeNodeInfoByNodeId($node->nid);
}