You are here

function my_module_form_callback in Feeds 8.2

Example of the form_callback specified in hook_feeds_processor_targets_alter().

The arguments are the same that my_module_summary_callback() gets.

Return value

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

See also

my_module_summary_callback()

Related topics

1 string reference to 'my_module_form_callback'
hook_feeds_processor_targets_alter in ./feeds.api.php
Alter mapping targets for entities. Use this hook to add additional target options to the mapping form of Node processors.

File

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

Code

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