You are here

public function FeedsSource::configFormValidate in Feeds 6

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

Override parent::configFormValidate().

Overrides FeedsConfigurable::configFormValidate

File

includes/FeedsSource.inc, line 353
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 configFormValidate(&$values) {
  foreach ($this->importer->plugin_types as $type) {
    $class = get_class($this->importer->{$type});
    if (isset($values[$class]) && $this->importer->{$type}
      ->hasSourceConfig()) {
      $this->importer->{$type}
        ->sourceFormValidate($values[$class]);
    }
  }
}