You are here

public function FeedsExXml::configForm in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/FeedsExXml.inc \FeedsExXml::configForm()

Overrides FeedsExBase::configForm

File

src/FeedsExXml.inc, line 124
Contains FeedsExXml.

Class

FeedsExXml
Parses XML documents with XPath.

Code

public function configForm(&$form_state) {
  $form = parent::configForm($form_state);
  if (extension_loaded('tidy')) {
    $form['use_tidy'] = array(
      '#type' => 'checkbox',
      '#title' => t('Use tidy'),
      '#description' => t('The <a href="http://php.net/manual/en/book.tidy.php">Tidy PHP</a> extension has been detected. Select this to clean the markup before parsing.'),
      '#default_value' => $this->config['use_tidy'],
    );
  }
  return $form;
}