You are here

function soundcloudfield_field_widget_error in SoundCloud field 7

Implement hook_field_error().

File

./soundcloudfield.module, line 416
@author Attila Fekete - http://drupal.org/user/762986

Code

function soundcloudfield_field_widget_error($element, $error) {
  switch ($error['error']) {
    case 'soundcloudfield_invalid_url':
      form_error($element, $error['message']);
      break;
  }
}