You are here

public function FeedsJSONPathParser::configFormValidate in Feeds JSONPath Parser 6

Same name and namespace in other branches
  1. 7 FeedsJSONPathParser.inc \FeedsJSONPathParser::configFormValidate()

Override parent::sourceFormValidate().

Overrides FeedsConfigurable::configFormValidate

1 call to FeedsJSONPathParser::configFormValidate()
FeedsJSONPathParser::sourceFormValidate in ./FeedsJSONPathParser.inc
Override parent::sourceFormValidate().

File

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

Class

FeedsJSONPathParser
Base class for the HTML and XML parsers.

Code

public function configFormValidate(&$values) {
  if (isset($values['jsonpath'])) {
    $values = $values['jsonpath'];
  }
  $values['context'] = trim($values['context']);
  foreach ($values['sources'] as &$source) {
    $source = trim($source);
  }
}