You are here

protected function RelationFeedsProcessor::entityValidate in Relation 7

File

relation_feeds/RelationFeedsProcessor.inc, line 149
Class definition of RelationFeedsProcessor.

Class

RelationFeedsProcessor
Creates relations from feed items.

Code

protected function entityValidate($entity) {
  try {
    field_attach_validate('relation', $entity);
  } catch (FieldValidationException $e) {
    throw new FeedsValidationException(t('Relation validation failed.'));
  }
}