You are here

function commerce_line_item_load_multiple in Commerce Core 7

Loads multiple line items by ID or based on a set of matching conditions.

Parameters

$line_item_ids: An array of line item IDs.

$conditions: An array of conditions on the {commerce_line_item} table in the form 'field' => $value.

$reset: Whether to reset the internal line item loading cache.

Return value

An array of line item objects indexed by line_item_id.

See also

entity_load()

5 calls to commerce_line_item_load_multiple()
commerce_line_item_field_validate in modules/line_item/commerce_line_item.module
Implements hook_field_validate().
commerce_line_item_field_widget_form in modules/line_item/commerce_line_item.module
Implements hook_field_widget_form().
commerce_line_item_handler_area_line_item_summary::render in modules/line_item/includes/views/handlers/commerce_line_item_handler_area_line_item_summary.inc
Render the area.
commerce_line_item_load in modules/line_item/commerce_line_item.module
Loads a line item by ID.
commerce_order_rules_contains_product_type in modules/order/commerce_order.rules.inc
Condition callback: checks to see if one or more particular product types exist on an order in the specified quantity.

File

modules/line_item/commerce_line_item.module, line 628
Defines the core Commerce line item entity and API functions interact with line items on orders.

Code

function commerce_line_item_load_multiple($line_item_ids = array(), $conditions = array(), $reset = FALSE) {
  return entity_load('commerce_line_item', $line_item_ids, $conditions, $reset);
}