taxonomy_node_delete

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

Implement hook_node_delete().

Related topics

Code

modules/taxonomy/taxonomy.module, line 1435

<?php
function taxonomy_node_delete($node) {
  if (variable_get('taxonomy_maintain_index_table', TRUE)) {
    // Clean up the {taxonomy_index} table when nodes are deleted.
    db_delete('taxonomy_index')->condition('nid', $node->nid)->execute();
  }
}
?>
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.