public function FeedsFileFetcher::configForm in Feeds 7
Same name and namespace in other branches
- 6 plugins/FeedsFileFetcher.inc \FeedsFileFetcher::configForm()
- 7.2 plugins/FeedsFileFetcher.inc \FeedsFileFetcher::configForm()
Override parent::configForm().
Overrides FeedsConfigurable::configForm
File
- plugins/
FeedsFileFetcher.inc, line 149 - Home of the FeedsFileFetcher and related classes.
Class
- FeedsFileFetcher
- Fetches data via HTTP.
Code
public function configForm(&$form_state) {
$form = array();
$form['allowed_extensions'] = array(
'#type' => 'textfield',
'#title' => t('Allowed file extensions'),
'#description' => t('Allowed file extensions for upload.'),
'#default_value' => $this->config['allowed_extensions'],
);
$form['direct'] = array(
'#type' => 'checkbox',
'#title' => t('Supply path to file directly'),
'#description' => t('For experts. If checked users can specify a path to a file when importing rather than uploading a file. This is useful when files to be imported are already present on server.'),
'#default_value' => $this->config['direct'],
);
return $form;
}