function merci_restrictions_load in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Returns all merci restrictions indexed by name, or just the one requested.
Used by machine name existence check also useful for menu path wildcard loader.
File
- merci_restrictions/
merci_restrictions.module, line 245
Code
function merci_restrictions_load($name = NULL) {
$wc = entity_load_multiple_by_name('merci_restrictions', isset($name) ? array(
$name,
) : FALSE);
return isset($name) ? reset($wc) : $wc;
}