You are here

function interval_field_widget_error in Interval Field 7

Implements hook_field_widget_error().

See also

interval_field_validate()

form_error()

File

./interval.module, line 248
Defines an interval field @copyright Copyright(c) 2011 Rowlands Group @license GPL v2+ http://www.fsf.org/licensing/licenses/gpl.html @author Lee Rowlands leerowlands at rowlandsgroup dot com

Code

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