Skip to content
Snippets Groups Projects
FeedsNodeProcessor.inc 479 B
Newer Older
<?php
// $Id$

class FeedsNodeProcessor extends FeedsProcessor {

  function process($feed) {
    foreach ($feed->items as $item) {
Alex Barth's avatar
Alex Barth committed
      if ($this->unique($item)) {
        $node = $this->map($item);
Alex Barth's avatar
Alex Barth committed
  /**
   * Return available mapping targets.
   */
  function getMappingTargets() {
Alex Barth's avatar
Alex Barth committed
    return array(
      'title' => FALSE, 
      'body' => FALSE, 
      'status' => FALSE, 
      'url' => TRUE, 
      'guid' => TRUE,
    );