taxonomy_node_predelete

taxonomy_node_predelete(EntityInterface $node)

Implements hook_ENTITY_TYPE_predelete() for node entities.

Related topics

Taxonomy indexing
Functions to maintain taxonomy indexing.

File

core/modules/taxonomy/taxonomy.module, line 557
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);
}
doc_Drupal
2016-10-29 09:46:31
Comments
Leave a Comment

Please login to continue.