You are here

function merci_resource_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_resource_node_settings()
  2. 7.2 includes/database.inc \merci_resource_node_settings()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 call to merci_resource_node_settings()
merci_load_item_settings in merci_migrate/merci_items.inc

File

merci_migrate/merci_items.inc, line 183

Code

function merci_resource_node_settings($vid) {
  if (!$vid) {
    return;
  }
  return db_query("SELECT merci_late_fee_per_hour, merci_rate_per_hour, merci_fee_free_hours, merci_min_cancel_hours, merci_autocheckout, merci_autocheckin, merci_selfcheckout FROM {merci_resource_node} WHERE vid = :vid", array(
    ':vid' => $vid,
  ))
    ->fetch(PDO::FETCH_ASSOC);
}