taxonomy_node_delete

Definition

taxonomy_node_delete($nid)
modules/taxonomy/taxonomy.module, line 885

Description

Remove associations of a node to its terms.

Code

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

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.