You are here

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

Saves a line item.

Parameters

$line_item: The full line item object to save.

Return value

SAVED_NEW or SAVED_UPDATED depending on the operation performed.

2 calls to merci_line_item_save()
merci_line_item_entity_insert in merci_line_item/merci_line_item.module
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
2 string references to 'merci_line_item_save'
MigrateDestinationLineItem::import in merci_migrate/merci_line_item.inc
Import a single node.
MigrateDestinationReservation::import in merci_migrate/merci_reservation.inc
Import a single node.

File

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

Code

function merci_line_item_save($line_item) {
  return entity_get_controller('merci_line_item')
    ->save($line_item);
}