public function FeedsImporter::configDefaults in Feeds 7.2
Same name and namespace in other branches
- 6 includes/FeedsImporter.inc \FeedsImporter::configDefaults()
- 7 includes/FeedsImporter.inc \FeedsImporter::configDefaults()
Return defaults for feed configuration.
Overrides FeedsConfigurable::configDefaults
File
- includes/
FeedsImporter.inc, line 283 - FeedsImporter class and related.
Class
- FeedsImporter
- Class for a Feeds importer.
Code
public function configDefaults() {
return array(
'name' => '',
'description' => '',
'fetcher' => array(
'plugin_key' => 'FeedsHTTPFetcher',
),
'parser' => array(
'plugin_key' => 'FeedsSyndicationParser',
),
'processor' => array(
'plugin_key' => 'FeedsNodeProcessor',
),
'content_type' => '',
'update' => 0,
// Refresh every 30 minutes by default.
'import_period' => 1800,
// Expire every hour by default, this is a hidden setting.
'expire_period' => 3600,
// Import on submission.
'import_on_create' => TRUE,
'process_in_background' => FALSE,
) + parent::configDefaults();
}