public function FeedsXPathParserBase::sourceFormValidate in Feeds XPath Parser 6
Same name and namespace in other branches
- 7 FeedsXPathParserBase.inc \FeedsXPathParserBase::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
- ./
FeedsXPathParserBase.inc, line 324 - Provides the abstract 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);
}