function path_taxonomy_term_delete

Implements hook_taxonomy_term_delete().

File

drupal/core/modules/path/path.module, line 311
Enables users to rename URLs.

Code

function path_taxonomy_term_delete(Term $term) {

  // Delete all aliases associated with this term.
  drupal_container()
    ->get('path.crud')
    ->delete(array(
    'source' => 'taxonomy/term/' . $term->tid,
  ));
}