You are here

function callback_my_module_preprocess_callback in Feeds 7.2

Changes or sets a mapping option.

Callback for hook_feeds_processor_targets().

This callback is specified on the 'preprocess_callbacks' key of the target definition.

Parameters

array $target: The full target definition.

array &$mapping: The mapping configuration.

See also

hook_feeds_processor_targets()

Related topics

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

File

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

Code

function callback_my_module_preprocess_callback(array $target, array &$mapping) {

  // Add in default values.
  $mapping += array(
    'setting_value' => TRUE,
  );
}