1 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

core/modules/taxonomy/taxonomy.module, line 2129
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();
  }
}