You are here

function double_field_field_widget_error in Double Field 7

Same name and namespace in other branches
  1. 7.2 double_field.module \double_field_field_widget_error()

Implements hook_field_widget_error().

File

./double_field.module, line 188
Defines double text field type.

Code

function double_field_field_widget_error($element, $error, $form, &$form_state) {
  foreach (array(
    'first',
    'second',
  ) as $item) {
    if ($error['error_element'][$item]) {
      form_error($element[$item], $error['message']);
    }
  }
}