You are here

function taxonomy_node_delete in Drupal 5

Same name and namespace in other branches
  1. 4 modules/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/taxonomy.module
Implementation of hook_nodeapi().
taxonomy_node_save in modules/taxonomy/taxonomy.module
Save term associations for a given node.

File

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

Code

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