public function FeedsXPathParserBase::sourceFormValidate in Feeds XPath Parser 7
Same name and namespace in other branches
- 6 FeedsXPathParserBase.inc \FeedsXPathParserBase::sourceFormValidate()
Overrides parent::sourceFormValidate().
If the values of this source are the same as the base config we set them to blank so that the values will be inherited from the importer defaults.
File
- ./
FeedsXPathParserBase.inc, line 385 - Provides the base class for FeedsXPathParserHTML and FeedsXPathParserXML.
Class
- FeedsXPathParserBase
- Base class for the HTML and XML parsers.
Code
public function sourceFormValidate(&$values) {
$config = $this
->getConfig();
$values = $values['xpath'];
$allow_override = $config['allow_override'];
unset($config['allow_override']);
ksort($values);
ksort($config);
if ($values === $config || !$allow_override) {
$values = array();
return;
}
$this
->configFormValidate($values);
}