You are here

public static function FeedImport::getEmptyFeed in Feed Import 7.3

Gets a new empty feed configuration.

Return value

array An empty feed configuration.

2 calls to FeedImport::getEmptyFeed()
feed_import_edit_feed_form_submit in ./feed_import.module
Edit form submit
feed_import_import_feed_from_json in ./feed_import.module
Import a feed from a json file.

File

feed_import_base/inc/feed_import.inc, line 319
This file contains Feed Import helpers.

Class

FeedImport
This class provides helper functions for feed import.

Code

public static function getEmptyFeed() {
  return array(
    'name' => NULL,
    'machine_name' => NULL,
    'entity' => NULL,
    'cron_import' => 0,
    'last_run' => 0,
    'last_run_duration' => 0,
    'last_run_items' => 0,
    'settings' => array(
      'uniq_path' => NULL,
      'preprocess' => NULL,
      'feed' => array(
        'protect_on_invalid_source' => FALSE,
        'protect_on_fewer_items' => 0,
      ),
      'processor' => array(
        'name' => 'default',
        'class' => 'FeedImportProcessor',
        'options' => array(
          'items_count' => 0,
          'skip_imported' => FALSE,
          'reset_cache' => 100,
          'break_on_undefined_filter' => TRUE,
          'skip_defined_functions_check' => FALSE,
          'updates_only' => FALSE,
        ),
      ),
      'reader' => array(
        'name' => 'xml',
        'class' => 'SimpleXMLFIReader',
        'options' => array(),
      ),
      'hashes' => array(
        'name' => 'sql',
        'class' => 'FeedImportSQLHashes',
        'options' => array(
          'ttl' => 0,
          'insert_chunk' => 300,
          'update_chunk' => 300,
          'group' => '',
        ),
      ),
      'filter' => array(
        'name' => 'default',
        'class' => 'FeedImportMultiFilter',
        'options' => array(
          'param' => '[field]',
          'include' => NULL,
        ),
      ),
      'fields' => array(),
      'static_fields' => array(),
      'functions' => array(),
    ),
  );
}