You are here

function taxonomy_node_delete in Drupal 4

Same name and namespace in other branches
  1. 5 modules/taxonomy/taxonomy.module \taxonomy_node_delete()
  2. 6 modules/taxonomy/taxonomy.module \taxonomy_node_delete()
  3. 7 modules/taxonomy/taxonomy.module \taxonomy_node_delete()

Remove associations of a node to its terms.

2 calls to taxonomy_node_delete()
taxonomy_nodeapi in modules/taxonomy.module
Implementation of hook_nodeapi().
taxonomy_node_save in modules/taxonomy.module
Save term associations for a given node.

File

modules/taxonomy.module, line 790
Enables the organization of content into categories.

Code

function taxonomy_node_delete($nid) {
  db_query('DELETE FROM {term_node} WHERE nid = %d', $nid);
}