You are here

public function FeedsFileFetcher::configDefaults in Feeds 7.2

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

Overrides parent::configDefaults().

Overrides FeedsPlugin::configDefaults

File

plugins/FeedsFileFetcher.inc, line 210
Home of the FeedsFileFetcher and related classes.

Class

FeedsFileFetcher
Fetches data via HTTP.

Code

public function configDefaults() {
  $schemes = $this
    ->getSchemes();
  $scheme = in_array('private', $schemes) ? 'private' : 'public';
  return array(
    'allowed_extensions' => 'txt csv tsv xml opml',
    'delete_uploaded_file' => FALSE,
    'direct' => FALSE,
    'directory' => $scheme . '://feeds',
    'allowed_schemes' => $schemes,
  ) + parent::configDefaults();
}