You are here

public function FeedsRulesProcessor::configDefaults in Feeds Rules 7

File

plugins/FeedsRulesProcessor.inc, line 122
Defines the Feeds Rules processor plugin.

Class

FeedsRulesProcessor
Feeds processor plugin to process a rules component for each feed items.

Code

public function configDefaults() {
  return array(
    'mappings' => array(),
    'component' => '',
    'source-mapping' => '',
    'reverse-component' => array(
      'component' => '',
      'mapping' => array(),
    ),
    // Set those defaults so FeedsProcessor:process() does not skip the items,
    // as otherwise no config for these settings would be available.
    'insert_new' => 1,
    'update_existing' => 2,
    'update_non_existent' => 'skip',
  );
}