You are here

function _taxonomy_menu_delete_item in Taxonomy menu 7.2

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 taxonomy_menu.database.inc \_taxonomy_menu_delete_item()

Delete all rows from {taxomony_menu} associated with this term ID and vocabulary ID.

Parameters

$vid: The vocabulary ID.

$tid: The term ID.

1 call to _taxonomy_menu_delete_item()
_taxonomy_menu_termapi_helper in ./taxonomy_menu.module
Abstraction of hook_termapi_<op>().

File

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

Code

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