You are here

function atom_reference_field_widget_error in Scald: Media Management made easy 7

Implements hook_field_widget_error.

File

modules/fields/atom_reference/atom_reference.module, line 415
Defines a new field type, allowing to directly reference Scald Atoms from a node.

Code

function atom_reference_field_widget_error($element, $error, $form, &$form_state) {
  $name = implode('][', $element['sid']['#array_parents']);
  form_set_error($name, $error['message']);
}