You are here

protected function LogProcessor::entityValidate in Log entity 7

Validates a log.

File

includes/feeds/plugins/LogProcessor.inc, line 111
Class definition of LogProcessor.

Class

LogProcessor
Creates logs 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'];
  }
}