You are here

function merci_insert in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6

Same name and namespace in other branches
  1. 6.2 merci.module \merci_insert()
  2. 7.2 merci.module \merci_insert()

Implementation of hook_insert().

File

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

Code

function merci_insert($node) {
  if ($node->type == 'merci_reservation') {
    db_query("INSERT INTO {merci_reservation} (nid, vid, status) VALUES (%d, %d, %d)", $node->nid, $node->vid, $node->merci_status);
    merci_add_reservation_items($node);
  }
}