You are here

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

Returns all merci hours indexed by name, or just the one requested.

Used by machine name existence check also useful for menu path wildcard loader.

1 string reference to 'merci_hours_load'
merci_hours_form in merci_hours/includes/entity.ui.inc
Generates the merci hours editing form.

File

merci_hours/merci_hours.module, line 152

Code

function merci_hours_load($name = NULL) {
  $wc = entity_load_multiple_by_name('merci_hours', isset($name) ? array(
    $name,
  ) : FALSE);
  return isset($name) ? reset($wc) : $wc;
}