public function FeedsXPathParserBase::configForm in Feeds XPath Parser 6
Same name and namespace in other branches
- 7 FeedsXPathParserBase.inc \FeedsXPathParserBase::configForm()
Override parent::configForm().
Overrides FeedsConfigurable::configForm
File
- ./
FeedsXPathParserBase.inc, line 275 - Provides the abstract 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;
}