You are here

function commerce_price_field_is_empty in Commerce Core 7

Implements of hook_field_is_empty().

File

modules/price/commerce_price.module, line 233
Defines the Price field with widgets and formatters used to add prices with currency codes to various Commerce entities.

Code

function commerce_price_field_is_empty($item, $field) {
  return !isset($item['amount']) || (string) $item['amount'] == '';
}