You are here

function merci_taxonomy_node_delete_vocabulary in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2

Same name and namespace in other branches
  1. 7.2 includes/database.inc \merci_taxonomy_node_delete_vocabulary()
1 call to merci_taxonomy_node_delete_vocabulary()
merci_taxonomy_json in includes/menu.inc
@todo Please document this function.

File

includes/database.inc, line 51
MERCI - Managed Equipment Reservation Checkout and Inventory

Code

function merci_taxonomy_node_delete_vocabulary($node, $vid) {
  if (empty($vid) or empty($node->vid)) {
    return;
  }
  db_query("DELETE FROM {term_node} WHERE vid = %d and tid IN (SELECT tid FROM {term_data} td WHERE td.vid = %d)", $node->vid, $vid);
}