public function FeedsSource::configForm in Feeds 6
Same name and namespace in other branches
- 7.2 includes/FeedsSource.inc \FeedsSource::configForm()
- 7 includes/FeedsSource.inc \FeedsSource::configForm()
Override parent::configForm().
Overrides FeedsConfigurable::configForm
File
- includes/
FeedsSource.inc, line 337 - Definition of FeedsSourceInterface and FeedsSource class.
Class
- FeedsSource
- This class encapsulates a source of a feed. It stores where the feed can be found and how to import it.
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});
$form[$class] = $this->importer->{$type}
->sourceForm($this->config[$class]);
$form[$class]['#tree'] = TRUE;
}
}
return $form;
}