You are here

function callback_my_module_form_callback in Feeds 7.2

Returns a form for configuring a target.

Callback for hook_feeds_processor_targets().

This callback is specified on the 'form_callbacks' key of the target definition. The arguments are the same that callback_my_module_summary_callback() gets.

Return value

array The per mapping configuration form. Once the form is saved, $mapping will be populated with the form values.

See also

hook_feeds_processor_targets()

callback_my_module_summary_callback()

Related topics

1 string reference to 'callback_my_module_form_callback'
hook_feeds_processor_targets in ./feeds.api.php
Adds mapping targets for processors.

File

./feeds.api.php, line 490
Documentation of Feeds hooks.

Code

function callback_my_module_form_callback(array $mapping, $target, array $form, array $form_state) {
  return array(
    'my_setting' => array(
      '#type' => 'checkbox',
      '#title' => t('My setting checkbox'),
      '#default_value' => !empty($mapping['my_setting']),
    ),
  );
}