You are here

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

Loads a line item by ID.

2 calls to merci_line_item_load()
merci_line_item_handler_field_edit_quantity::views_form_submit in merci_line_item/includes/views/handlers/merci_line_item_handler_field_edit_quantity.inc
merci_line_item_handler_field_line_item_title::render in merci_line_item/includes/views/handlers/merci_line_item_handler_field_line_item_title.inc
Render the field.

File

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

Code

function merci_line_item_load($line_item_id) {
  $line_items = merci_line_item_load_multiple(array(
    $line_item_id,
  ), array());
  return $line_items ? reset($line_items) : FALSE;
}