You are here

function feeds_form in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_form()
  2. 6 includes/FeedsConfigurable.inc \feeds_form()
  3. 7.2 includes/FeedsConfigurable.inc \feeds_form()

Config form callback. Don't call directly, but use feeds_get_form($configurable, 'method') instead.

Parameters

FormAPI $form_state.:

FeedsConfigurable object.:

The object to perform the save() operation on.:

$form_method: The $form_method that should be rendered.

1 string reference to 'feeds_form'
feeds_forms in ./feeds.module
Implements hook_forms().

File

includes/FeedsConfigurable.inc, line 228
FeedsConfigurable and helper functions.

Code

function feeds_form($form, &$form_state, $configurable, $form_method) {
  $form = $configurable
    ->{$form_method}($form_state);
  $form['#configurable'] = $configurable;
  $form['#feeds_form_method'] = $form_method;
  $form['#validate'] = array(
    'feeds_form_validate',
  );
  $form['#submit'] = array(
    'feeds_form_submit',
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
    '#weight' => 100,
  );
  return $form;
}