You are here

public function FeedsJSONPathParser::sourceFormValidate in Feeds JSONPath Parser 6

Same name and namespace in other branches
  1. 7 FeedsJSONPathParser.inc \FeedsJSONPathParser::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.

Overrides FeedsPlugin::sourceFormValidate

File

./FeedsJSONPathParser.inc, line 260
Provides the Class for Feeds JSONPath Parser.

Class

FeedsJSONPathParser
Base class for the HTML and XML parsers.

Code

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