You are here

public function FeedsXPathParserBase::configForm in Feeds XPath Parser 7

Same name and namespace in other branches
  1. 6 FeedsXPathParserBase.inc \FeedsXPathParserBase::configForm()

Overrides parent::configForm().

File

./FeedsXPathParserBase.inc, line 338
Provides the base class for FeedsXPathParserHTML and FeedsXPathParserXML.

Class

FeedsXPathParserBase
Base class for the HTML and XML parsers.

Code

public function configForm(&$form_state) {
  $config = $this
    ->getConfig();
  $config['config'] = TRUE;
  $form = $this
    ->sourceForm($config);
  $form['xpath']['context']['#required'] = FALSE;
  $form['xpath']['#collapsed'] = FALSE;
  $form['xpath']['allow_override'] = array(
    '#type' => 'checkbox',
    '#title' => t('Allow source configuration override'),
    '#description' => t('This setting allows feed nodes to specify their own XPath values for the context and sources.'),
    '#default_value' => $config['allow_override'],
  );
  return $form;
}