You are here

function commerce_price_field_widget_error in Commerce Core 7

Implements hook_field_widget_error().

File

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

Code

function commerce_price_field_widget_error($element, $error, $form, &$form_state) {
  form_error($element['amount'], $error['message']);
}