You are here

function my_module_set_target in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.api.php \my_module_set_target()

Example callback specified in hook_feeds_processor_targets_alter().

Parameters

$entity: An entity object, for instance a node object.

$target: A string identifying the target on the node.

$value: The value to populate the target with.

Related topics

1 string reference to 'my_module_set_target'
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 219

Code

function my_module_set_target($entity, $target, $value) {
  $entity->{$target}['und'][0]['value'] = $value;
}