You are here

function _taxonomy_menu_delete_item in Taxonomy menu 7

Same name and namespace in other branches
  1. 8 taxonomy_menu.database.inc \_taxonomy_menu_delete_item()
  2. 6.2 taxonomy_menu.database.inc \_taxonomy_menu_delete_item()
  3. 7.2 taxonomy_menu.database.inc \_taxonomy_menu_delete_item()

Deletes all rows from {taxomony_menu} associated with this tid

Parameters

$vid:

$tid:

int $vid: Vocabulary ID.

int $tid: Taxonomy term ID.

1 call to _taxonomy_menu_delete_item()
taxonomy_menu_taxonomy_menu_delete in ./taxonomy_menu.module
Implements hook_taxonomy_menu_delete().

File

./taxonomy_menu.database.inc, line 137
Database functions

Code

function _taxonomy_menu_delete_item($vid, $tid) {
  $and = db_and()
    ->condition('vid', $vid)
    ->condition('tid', $tid);
  db_delete('taxonomy_menu')
    ->condition($and)
    ->execute();
}