You are here

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

Same name and namespace in other branches
  1. 6.2 includes/database.inc \merci_node_type_delete()

@todo Please document this function.

See also

http://drupal.org/node/1354

File

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

Code

function merci_node_type_delete($info) {

  // TODO Please review the conversion of this statement to the D7 database API syntax.

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