You are here

function youtube_field_widget_error in YouTube Field 7

Implements hook_field_widget_error().

File

./youtube.module, line 653

Code

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