You are here

function merci_reservation_item_node_settings in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Same name and namespace in other branches
  1. 6.2 includes/database.inc \merci_reservation_item_node_settings()
  2. 7.2 includes/database.inc \merci_reservation_item_node_settings()
1 call to merci_reservation_item_node_settings()
merci_load_item_settings in merci_migrate/merci_items.inc

File

merci_migrate/merci_items.inc, line 190

Code

function merci_reservation_item_node_settings($vid) {
  if (!$vid) {
    return;
  }
  return db_query("SELECT merci_default_availability, merci_sub_type, merci_item_status FROM {merci_reservation_item_node} WHERE vid = :vid", array(
    ':vid' => $vid,
  ))
    ->fetch(PDO::FETCH_ASSOC);
}