You are here

function commerce_discount_line_item_added_by_discount in Commerce Discount 7

Condition callback: looks to see if the line item was added by a discount.

File

./commerce_discount.rules.inc, line 871
Rules integration for the Commerce Discount module.

Code

function commerce_discount_line_item_added_by_discount($line_item) {
  return !empty($line_item->data['discount_name']);
}