You are here

function _taxonomy_edge_taxonomy_term_delete in Taxonomy Edge 7

Same name and namespace in other branches
  1. 8 taxonomy_edge.module \_taxonomy_edge_taxonomy_term_delete()
  2. 6 taxonomy_edge.module \_taxonomy_edge_taxonomy_term_delete()
  3. 7.2 taxonomy_edge.module \_taxonomy_edge_taxonomy_term_delete()

Delete a term from the edge tree.

Parameters

$tid: Term ID.

2 calls to _taxonomy_edge_taxonomy_term_delete()
taxonomy_edge_process_queue_item in ./taxonomy_edge.module
Cron queue worker.
taxonomy_edge_taxonomy_term_delete in ./taxonomy_edge.module
Implements hook_taxonomy_term_delete().

File

./taxonomy_edge.module, line 614
Optimization of taxonomy data model for SQL performance.

Code

function _taxonomy_edge_taxonomy_term_delete($term) {
  db_query("DELETE FROM {taxonomy_term_edge} WHERE vid = :vid AND tid = :tid", array(
    ':vid' => $term->vid,
    ':tid' => $term->tid,
  ));
}