You are here

public function FeedsSource::configDefaults in Feeds 6

Same name and namespace in other branches
  1. 7.2 includes/FeedsSource.inc \FeedsSource::configDefaults()
  2. 7 includes/FeedsSource.inc \FeedsSource::configDefaults()

Return defaults for feed configuration.

Overrides FeedsConfigurable::configDefaults

File

includes/FeedsSource.inc, line 323
Definition of FeedsSourceInterface and FeedsSource class.

Class

FeedsSource
This class encapsulates a source of a feed. It stores where the feed can be found and how to import it.

Code

public function configDefaults() {

  // Collect information from plugins.
  $defaults = array();
  foreach ($this->importer->plugin_types as $type) {
    if ($this->importer->{$type}
      ->hasSourceConfig()) {
      $defaults[get_class($this->importer->{$type})] = $this->importer->{$type}
        ->sourceDefaults();
    }
  }
  return $defaults;
}