Skip to content
Snippets Groups Projects
Commit d023593e authored by dandaman's avatar dandaman Committed by Eric Mckenna
Browse files

Issue #1219180 by dandaman: Fixed Minor error in API code samples.

parent d08fdac5
No related branches found
No related tags found
No related merge requests found
......@@ -229,9 +229,9 @@ function hook_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_nam
*
*/
function my_module_set_target($source, $entity, $target, $value) {
$entity->$target['und'][0]['value'] = $value;
$entity->{$target}[$entity->language][0]['value'] = $value;
if (isset($source->importer->processor->config['input_format'])) {
$entity->$target['und'][0]['format'] =
$entity->{$target}[$entity->language][0]['format'] =
$source->importer->processor->config['input_format'];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment