public function FeedsSource::configForm in Feeds 7.2
Same name and namespace in other branches
- 6 includes/FeedsSource.inc \FeedsSource::configForm()
- 7 includes/FeedsSource.inc \FeedsSource::configForm()
Override parent::configForm().
Overrides FeedsConfigurable::configForm
File
- includes/
FeedsSource.inc, line 1123 - Definition of FeedsSourceInterface, FeedsState and FeedsSource class.
Class
- FeedsSource
- Holds the source of a feed to import.
Code
public function configForm(&$form_state) {
// Collect information from plugins.
$form = array();
foreach ($this->importer->plugin_types as $type) {
if ($this->importer->{$type}
->hasSourceConfig()) {
$class = get_class($this->importer->{$type});
$config = isset($this->config[$class]) ? $this->config[$class] : array();
$form[$class] = $this->importer->{$type}
->sourceForm($config);
$form[$class]['#tree'] = TRUE;
}
}
return $form;
}