function _taxonomy_menu_delete_all in Taxonomy menu 8
Same name and namespace in other branches
- 6.2 taxonomy_menu.database.inc \_taxonomy_menu_delete_all()
- 7.2 taxonomy_menu.database.inc \_taxonomy_menu_delete_all()
- 7 taxonomy_menu.database.inc \_taxonomy_menu_delete_all()
Deletes all links associated with this vocab from {taxonomy_menu} table.
Parameters
$vid: the vocabulary's id to delete items from.
1 call to _taxonomy_menu_delete_all()
- taxonomy_menu_menu_links_delete in ./
taxonomy_menu.module - Deletes all the menu links associated to a vocabulary.
File
- ./
taxonomy_menu.database.inc, line 112 - Database functions.
Code
function _taxonomy_menu_delete_all($vid) {
db_delete('taxonomy_menu')
->condition('vid', $vid)
->execute();
}