function choices_field_widget_error in Poll Improved 7
Implements hook_field_widget_error().
File
- modules/
choices/ choices.module, line 178 - Defines simple choices field.
Code
function choices_field_widget_error($element, $error, $form, &$form_state) {
switch ($error['error']) {
default:
$error_element = $element[$element['#columns'][0]];
break;
}
form_error($error_element, $error['message']);
}