You are here

function _nat_delete_association in Node Auto Term [NAT] 7

Same name and namespace in other branches
  1. 5 nat.module \_nat_delete_association()
  2. 6.2 nat.module \_nat_delete_association()
  3. 6 nat.module \_nat_delete_association()
  4. 7.2 nat.module \_nat_delete_association()

Delete node-term associations from the NAT table.

Parameters

$nid: Node ID of the node which is to be removed from the NAT table.

1 call to _nat_delete_association()
nat_node_delete in ./nat.module
Implements hook_node_delete().

File

./nat.module, line 667
NAT - node auto term - is a helper module that automatically creates a term using the same title as a node.

Code

function _nat_delete_association($nid) {
  db_delete('nat')
    ->condition('nid', $nid)
    ->execute();
}