protected function FeedsUcAddressesProcessor::entityValidate in Ubercart Addresses 7
Validates an address.
File
- feeds/
FeedsUcAddressesProcessor.inc, line 47 - Contains the FeedsUcAddressesProcessor class.
Class
- FeedsUcAddressesProcessor
- A processor for importing data belonging to an Ubercart Addresses address.
Code
protected function entityValidate($address, FeedsSource $source = NULL) {
if (!$address
->isOwned()) {
throw new FeedsValidationException(t('The address can not be saved because the user it should belong to is not found.'));
}
}