function taxonomy_delete_node_index

Same name in other branches
  1. 9 core/modules/taxonomy/taxonomy.module \taxonomy_delete_node_index()
  2. 8.9.x core/modules/taxonomy/taxonomy.module \taxonomy_delete_node_index()
  3. 10 core/modules/taxonomy/taxonomy.module \taxonomy_delete_node_index()
  4. 11.x core/modules/taxonomy/taxonomy.module \taxonomy_delete_node_index()

Deletes taxonomy index entries for a given node.

Parameters

$node: The node object.

Related topics

2 calls to taxonomy_delete_node_index()
taxonomy_node_delete in modules/taxonomy/taxonomy.module
Implements hook_node_delete().
taxonomy_node_update in modules/taxonomy/taxonomy.module
Implements hook_node_update().

File

modules/taxonomy/taxonomy.module, line 2013

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.