You are here

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

Same name and namespace in other branches
  1. 7.2 merci.module \merci_node_insert()
1 call to merci_node_insert()
merci_nodeapi in ./merci.module
Implementation of hook_nodeapi().

File

./merci.module, line 874
MERCI - Managed Equipment Reservation Checkout and Inventory

Code

function merci_node_insert($node) {

  // Process active MERCI node types and reservation nodes.
  if (merci_is_merci_type($node->type)) {
    $merci_type = merci_type_setting($node->type);
    drupal_write_record('merci_' . $merci_type . '_node', $node);
    drupal_write_record('merci_reservation_item_node', $node);
  }
}