You are here

public function FeedsSource::configForm in Feeds 7

Same name and namespace in other branches
  1. 6 includes/FeedsSource.inc \FeedsSource::configForm()
  2. 7.2 includes/FeedsSource.inc \FeedsSource::configForm()

Override parent::configForm().

Overrides FeedsConfigurable::configForm

File

includes/FeedsSource.inc, line 354
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});
      $config = isset($this->config[$class]) ? $this->config[$class] : array();
      $form[$class] = $this->importer->{$type}
        ->sourceForm($config);
      $form[$class]['#tree'] = TRUE;
    }
  }
  return $form;
}