Newer
Older
<?php
// $Id$
class FeedsNodeProcessor extends FeedsProcessor {
function process($feed) {
foreach ($feed->items as $item) {
if ($this->unique($item)) {
$node = $this->map($item);
node_save($node);
}
}
}
function getMappingTargets() {
return array(
'title' => FALSE,
'body' => FALSE,
'status' => FALSE,
'url' => TRUE,
'guid' => TRUE,
);