You are here

function feeds_forms in Feeds 8.2

Same name and namespace in other branches
  1. 6 feeds.module \feeds_forms()
  2. 7.2 feeds.module \feeds_forms()
  3. 7 feeds.module \feeds_forms()

Implements hook_forms().

Declare form callbacks for all known classes derived from FeedsConfigurable.

Related topics

File

./feeds.module, line 276
Feeds - basic API functions and hook implementations.

Code

function feeds_forms() {
  $forms = array();
  $forms['Drupal\\feeds\\FeedsImporter_feeds_form']['callback'] = 'feeds_form';
  $plugins = FeedsPlugin::all();
  foreach ($plugins as $plugin) {
    $forms[$plugin['class'] . '_feeds_form']['callback'] = 'feeds_form';
  }
  return $forms;
}