public function FeedsImporter::configDefaults in Feeds 6
Same name and namespace in other branches
- 7.2 includes/FeedsImporter.inc \FeedsImporter::configDefaults()
- 7 includes/FeedsImporter.inc \FeedsImporter::configDefaults()
Return defaults for feed configuration.
Overrides FeedsConfigurable::configDefaults
File
- includes/
FeedsImporter.inc, line 208 - FeedsImporter class and related.
Class
- FeedsImporter
- A FeedsImporter object describes how an external source should be fetched, parsed and processed. Feeds can manage an arbitrary amount of importers.
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,
'import_period' => 1800,
// Refresh every 30 minutes by default.
'expire_period' => 3600,
// Expire every hour by default, this is a hidden setting.
'import_on_create' => TRUE,
);
}