1.20.x taxonomy.module taxonomy_delete_node_index(Node $node)

Deletes taxonomy index entries for a given node.

Parameters

Node $node: The node entity.

Related topics

File

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

Code

function taxonomy_delete_node_index(Node $node) {
  if (config_get('taxonomy.settings', 'maintain_index_table')) {
    db_delete('taxonomy_index')->condition('nid', $node->nid)->execute();
  }
}