You are here

public function FeedsExXml::configFormValidate in Feeds extensible parsers 7

Overrides FeedsExBase::configFormValidate

File

src/FeedsExXml.inc, line 209
Contains FeedsExXml.

Class

FeedsExXml
Parses XML documents with XPath.

Code

public function configFormValidate(&$values) {
  parent::configFormValidate($values);

  // Remove values that are inner but not raw.
  foreach ($values['sources'] as $machine_name => $source) {
    if (!empty($source['inner']) && empty($source['raw'])) {
      unset($values['sources'][$machine_name]['inner']);
    }
  }
}