You are here

public function FeedsNodeProcessor::configDefaults in Feeds 6

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

Override parent::configDefaults().

Overrides FeedsProcessor::configDefaults

File

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

Class

FeedsNodeProcessor
Creates nodes from feed items.

Code

public function configDefaults() {
  $types = node_get_types('names');
  $type = isset($types['story']) ? 'story' : key($types);
  return array(
    'content_type' => $type,
    'input_format' => FILTER_FORMAT_DEFAULT,
    'update_existing' => FEEDS_SKIP_EXISTING,
    'expire' => FEEDS_EXPIRE_NEVER,
    'mappings' => array(),
    'author' => 0,
    'authorize' => 0,
    'skip_hash_check' => FALSE,
  );
}