function getlocations_leaflet_field_widget_error in Get Locations 7.2
Same name and namespace in other branches
- 7 modules/getlocations_leaflet/getlocations_leaflet.module \getlocations_leaflet_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_leaflet/ getlocations_leaflet.module, line 1185 
- getlocations_leaflet.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_leaflet_field_widget_error($element, $error, $form, &$form_state) {
  switch ($error['error']) {
    case 'getlocations_leaflet_field_invalid':
      form_error($element, $error['message']);
      break;
  }
}