You are here

function commerce_line_item_field_is_empty in Commerce Core 7

Implements hook_field_is_empty().

File

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

Code

function commerce_line_item_field_is_empty($item, $field) {

  // line_item_id = 0 is empty too, which is exactly what we want.
  return empty($item['line_item_id']);
}