You are here

function commerce_line_item_load in Commerce Core 7

Loads a line item by ID.

7 calls to commerce_line_item_load()
commerce_cart_form_alter in modules/cart/commerce_cart.module
Implements hook_form_alter().
commerce_cart_handler_field_edit_attributes::views_form in modules/cart/includes/views/handlers/commerce_cart_handler_field_edit_attributes.inc
Returns the form which replaces the placeholder from render().
commerce_cart_order_product_line_item_delete in modules/cart/commerce_cart.module
Deletes a product line item from a shopping cart order.
commerce_line_item_handler_field_edit_quantity::views_form_submit in modules/line_item/includes/views/handlers/commerce_line_item_handler_field_edit_quantity.inc
commerce_line_item_handler_field_line_item_title::render in modules/line_item/includes/views/handlers/commerce_line_item_handler_field_line_item_title.inc
Render the field.

... See full list

1 string reference to 'commerce_line_item_load'
commerce_line_item_entity_info in modules/line_item/commerce_line_item.module
Implements hook_entity_info().

File

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

Code

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