You are here

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

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

File

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

Code

function merci_node_type_update($info) {
  if (isset($info->old_type) && $info->type != $info->old_type) {
    db_query("UPDATE {merci_node_type} SET type = '%s' WHERE type = '%s'", $info->type, $info->old_type);
    cache_clear_all('merci_' . $info->type . '_data', 'cache');
    cache_clear_all('merci_content_type_info', 'cache');
  }
}