You are here

public function FeedsJSONPathParser::configFormValidate in Feeds JSONPath Parser 7

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

Override parent::sourceFormValidate().

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

File

./FeedsJSONPathParser.inc, line 400
Contains FeedsJSONPathParser.

Class

FeedsJSONPathParser
Parses JSON using JSONPath.

Code

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