You are here

function multifield_field_validate in Multifield 7

Same name and namespace in other branches
  1. 7.2 multifield.field.inc \multifield_field_validate()

Implements hook_field_validate().

File

./multifield.field.inc, line 175
Field integration for the Multifield module.

Code

function multifield_field_validate($entity_type, $entity, $field, $instance, $langcode, $items, &$errors) {
  $machine_name = multifield_extract_multifield_machine_name($field);
  foreach ($items as $delta => $item) {

    //$pseudo_entity = _multifield_field_item_to_entity($machine_name, $item);

    //_multifield_field_attach_form_validate('multifield', $pseudo_entity);

    //$items[$delta] = _multifield_field_entity_to_item($pseudo_entity);
  }
}