You are here

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

Same name and namespace in other branches
  1. 7.2 includes/database.inc \merci_node_type_delete()
1 call to merci_node_type_delete()
merci_node_type in ./merci.module
Implementation of hook_node_type().

File

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

Code

function merci_node_type_delete($info) {
  db_query("DELETE FROM {merci_node_type} WHERE type = '%s'", $info->type);
  variable_del('merci_type_setting_' . $info->type);
  cache_clear_all('merci_' . $info->type . '_data', 'cache');
  cache_clear_all('merci_content_type_info', 'cache');
}