function getlocations_mapquest_field_widget_error in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_mapquest/getlocations_mapquest.module \getlocations_mapquest_field_widget_error()
Implements hook_field_widget_error().
hook_field_widget_error() lets us figure out what to do with errors we might have generated in hook_field_validate(). Generally, we'll just call form_error().
File
- modules/
getlocations_mapquest/ getlocations_mapquest.module, line 767 - getlocations_mapquest.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_mapquest_field_widget_error($element, $error, $form, &$form_state) {
switch ($error['error']) {
case 'getlocations_mapquest_field_invalid':
form_error($element, $error['message']);
break;
}
}