You are here

function _linkchecker_delete_node_links in Link checker 7

Same name and namespace in other branches
  1. 5.2 linkchecker.module \_linkchecker_delete_node_links()
  2. 6.2 linkchecker.module \_linkchecker_delete_node_links()

Remove all node references to links in the linkchecker_node table.

Parameters

int $nid: The node ID.

1 call to _linkchecker_delete_node_links()
linkchecker_node_delete in ./linkchecker.module
Implements hook_node_delete().

File

./linkchecker.module, line 1521
This module periodically check links in given node types, blocks etc.

Code

function _linkchecker_delete_node_links($nid) {
  db_delete('linkchecker_node')
    ->condition('nid', $nid)
    ->execute();
}