You are here

protected function FarmAssetProcessor::entityValidate in farmOS 7

Validates a farm asset.

File

modules/farm/farm_asset/includes/feeds/plugins/FarmAssetProcessor.inc, line 111
Class definition of FarmAssetProcessor.

Class

FarmAssetProcessor
Creates farm assets from feed items.

Code

protected function entityValidate($entity, FeedsSource $source = NULL) {
  parent::entityValidate($entity, $source);
  if (!isset($entity->uid) || !is_numeric($entity->uid)) {
    $entity->uid = $this->config['author'];
  }
}