You are here

public function FeedsImporter::configFormSubmit in Feeds 7.2

Same name and namespace in other branches
  1. 6 includes/FeedsImporter.inc \FeedsImporter::configFormSubmit()
  2. 7 includes/FeedsImporter.inc \FeedsImporter::configFormSubmit()

Overrides parent::configFormSubmit().

Reschedule if import period changes.

Parameters

array $values: An array that contains the values entered by the user through configForm.

Overrides FeedsConfigurable::configFormSubmit

File

includes/FeedsImporter.inc, line 394
FeedsImporter class and related.

Class

FeedsImporter
Class for a Feeds importer.

Code

public function configFormSubmit(&$values) {
  if ($this->config['import_period'] != $values['import_period']) {
    feeds_reschedule($this->id);
  }
  parent::configFormSubmit($values);
}