You are here

function feeds_forms in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_forms()
  2. 6 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 348
Feeds - basic API functions and hook implementations.

Code

function feeds_forms($form_id, $args) {

  // Check if the requested form is a Feeds form.
  if (!stripos($form_id, '_feeds_form')) {
    return;
  }
  $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;
}