You are here

function feeds_forms in Feeds 7

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

Implements hook_forms().

Declare form callbacks for all known classes derived from FeedsConfigurable.

Related topics

File

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

Code

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