function entityreference_feeds_processor_mapped_targets in Entity reference feeds 7
1 call to entityreference_feeds_processor_mapped_targets()
- entityreference_feeds_entity_presave in ./
entityreference_feeds.module - Implements hook_entity_presave().
File
- ./
entityreference_feeds.module, line 132 - This is the main module file for entity reference feeds.
Code
function entityreference_feeds_processor_mapped_targets($id) {
$static_cache =& drupal_static(__FUNCTION__, array());
if (isset($static_cache[$id])) {
return $static_cache[$id];
}
else {
$static_cache[$id] = array();
}
$importer = feeds_importer($id);
$mappings = $importer->processor
->getMappings();
foreach ($mappings as $mapping) {
$static_cache[$id][] = $mapping['target'];
}
return $static_cache[$id];
}