You are here

function feeds_tests_mapper_set_target in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 tests/feeds_tests.module \feeds_tests_mapper_set_target()

Set target value on entity.

See also

my_module_set_target()

1 string reference to 'feeds_tests_mapper_set_target'
feeds_tests_feeds_processor_targets_alter in tests/feeds_tests.module
Implements hook_feeds_processor_targets_alter().

File

tests/feeds_tests.module, line 125
Helper module for Feeds tests.

Code

function feeds_tests_mapper_set_target($source, $entity, $target, $value, $mapping) {
  $entity->body['und'][0]['value'] = serialize($mapping);
}