You are here

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

Returns a single line item type array.

Parameters

$type: The machine-readable name of the line item type.

Return value

The specified line item type array or FALSE if it does not exist.

1 string reference to 'merci_line_item_type_load'
merci_line_item_type_form in merci_line_item/merci_line_item_type.admin.inc
Generates the merci_reservation_detail type editing form.

File

merci_line_item/merci_line_item.module, line 518
Defines the core MERCI line item entity and API functions interact with line items.

Code

function merci_line_item_type_load($type) {
  $line_item_types = merci_line_item_types();
  return isset($line_item_types[$type]) ? $line_item_types[$type] : FALSE;
}