You are here

function getlocations_map_field_widget_error in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_map/getlocations_map.module \getlocations_map_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_map/getlocations_map.module, line 738
getlocations_map.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

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