taxonomy_node_delete

Versions
4.6 – 5
taxonomy_node_delete($nid)
6 – 7
taxonomy_node_delete($node)

Remove associations of a node to its terms.

▾ 2 functions call 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.

Code

modules/taxonomy/taxonomy.module, line 884

<?php
function taxonomy_node_delete($nid) {
  db_query('DELETE FROM {term_node} WHERE nid = %d', $nid);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.