protected function FeedsCommentProcessor::newEntity in Feeds Comment Processor 7
File
- ./
FeedsCommentProcessor.inc, line 33 - Contains FeedsCommentProcessor.
Class
- FeedsCommentProcessor
- Creates comments from feed items.
Code
protected function newEntity(FeedsSource $source) {
$comment = new stdClass();
$comment->cid = 0;
$comment->pid = 0;
$comment->nid = 0;
$comment->uid = $this->config['author'];
$comment->node_type = $this
->bundle();
$comment->hostname = '127.0.0.1';
$comment->created = REQUEST_TIME;
$comment->changed = REQUEST_TIME;
$comment->language = LANGUAGE_NONE;
$comment->name = '';
$comment->mail = '';
$comment->subject = '';
$comment->feeds_is_new = TRUE;
return $comment;
}