You are here

function field_ipaddress_field_widget_error in IP address fields 7

Implements hook_field_widget_error().

File

./field_ipaddress.module, line 184

Code

function field_ipaddress_field_widget_error($element, $error, $form, &$form_state) {
  switch ($error['error']) {
    case 'field_ipaddress_invalid':
      form_error($element, $error['message']);
      break;
  }
}