You are here

public function FeedsQueryPathParser::sourceFormValidate in Feeds QueryPath Parser 7

Same name and namespace in other branches
  1. 6 FeedsQueryPathParser.inc \FeedsQueryPathParser::sourceFormValidate()

Override parent::sourceFormValidate().

If the values of this source are the same as the base config we set them to blank to that the values will be inherited from the importer defaults.

Parameters

&$values: The values from the form to validate, passed by reference.

File

./FeedsQueryPathParser.inc, line 262
Provides the class for FeedsQueryPathParser.

Class

FeedsQueryPathParser
@file

Code

public function sourceFormValidate(&$values) {
  $values = $values['querypath'];
  ksort($values);
  ksort($this->config);
  if ($values === $this->config) {
    $values = array();
    return;
  }
  $this
    ->configFormValidate($values);
}