function localize_fields_field_attach_validate in Localize Fields 7
Translates error messages created by implementations of hook_field_validate().
Implements hook_field_attach_validate().
See https://drupal.org/node/1283718.
Parameters
string $entity_type:
array $entity:
array $errors:
File
- ./
localize_fields.module, line 185 - Drupal Localize Fields module
Code
function localize_fields_field_attach_validate($entity_type, $entity, &$errors) {
if ($errors) {
// We don't need the $entity_type, because $entity gives a clue about the
// bundle. ($entity_type doesn't really).
LocalizeFields::fieldAttachValidate($entity, $errors);
}
}