public function FeedsCSVParser::configForm in Feeds 7.2
Same name and namespace in other branches
- 6 plugins/FeedsCSVParser.inc \FeedsCSVParser::configForm()
- 7 plugins/FeedsCSVParser.inc \FeedsCSVParser::configForm()
Build configuration form.
Overrides FeedsConfigurable::configForm
File
- plugins/
FeedsCSVParser.inc, line 235 - Contains the FeedsCSVParser class.
Class
- FeedsCSVParser
- Parses a given file as a CSV file.
Code
public function configForm(&$form_state) {
$form = array();
$form['delimiter'] = array(
'#type' => 'select',
'#title' => t('Default delimiter'),
'#description' => t('Default field delimiter.'),
'#options' => $this
->getAllDelimiterTypes(),
'#default_value' => $this->config['delimiter'],
);
$form['no_headers'] = array(
'#type' => 'checkbox',
'#title' => t('No headers'),
'#description' => t('Check if the imported CSV file does not start with a header row. If checked, mapping sources must be named \'0\', \'1\', \'2\' etc.'),
'#default_value' => $this->config['no_headers'],
);
$form['encoding'] = $this
->configEncodingForm();
return $form;
}