function taxonomy_node_predelete

Implements hook_node_predelete().

Related topics

File

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

Code

function taxonomy_node_predelete(EntityInterface $node) {

  // Clean up the {taxonomy_index} table when nodes are deleted.
  taxonomy_delete_node_index($node);
}