You are here

protected function RelationFeedsProcessor::newEntity in Relation 7

File

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

Class

RelationFeedsProcessor
Creates relations from feed items.

Code

protected function newEntity(FeedsSource $source) {
  $account = user_load($this->config['author']);
  $relation = relation_create($this->config['bundle'], array(), $account);
  return $relation;
}