You are here

public function FeedsNodeProcessor::configDefaults in Feeds 7

Same name and namespace in other branches
  1. 6 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::configDefaults()
  2. 7.2 plugins/FeedsNodeProcessor.inc \FeedsNodeProcessor::configDefaults()

Override parent::configDefaults().

Overrides FeedsProcessor::configDefaults

File

plugins/FeedsNodeProcessor.inc, line 149
Class definition of FeedsNodeProcessor.

Class

FeedsNodeProcessor
Creates nodes from feed items.

Code

public function configDefaults() {
  $types = node_type_get_names();
  $type = isset($types['article']) ? 'article' : key($types);
  return array(
    'content_type' => $type,
    'input_format' => FEEDS_NODE_DEFAULT_FORMAT,
    'update_existing' => FEEDS_SKIP_EXISTING,
    'expire' => FEEDS_EXPIRE_NEVER,
    'mappings' => array(),
    'author' => 0,
  );
}