function taxonomy_delete_node_index

Deletes taxonomy index entries for a given node.

Parameters

Drupal\node\Node $node: The node entity.

Related topics

2 calls to taxonomy_delete_node_index()
taxonomy_node_predelete in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_node_predelete().
taxonomy_node_update in drupal/core/modules/taxonomy/taxonomy.module
Implements hook_node_update().

File

drupal/core/modules/taxonomy/taxonomy.module, line 1514
Enables the organization of content into categories.

Code

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