function taxonomy_delete_node_index

taxonomy_delete_node_index($node)

Deletes taxonomy index entries for a given node.

Parameters

$node: The node object.

Related topics

File

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

Code

function taxonomy_delete_node_index($node) {
  if (variable_get('taxonomy_maintain_index_table', TRUE)) {
    db_delete('taxonomy_index')->condition('nid', $node->nid)->execute();
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_delete_node_index/7.x