function email_feeds_processor_targets_alter in Email Field 7
Implements hook_feeds_processor_targets_alter().
See also
FeedsNodeProcessor::getMappingTargets().
File
- ./
email.feeds.inc, line 12 - Integration with the Feeds module.
Code
function email_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_name) {
foreach (field_info_instances($entity_type, $bundle_name) as $name => $instance) {
$info = field_info_field($name);
if (in_array($info['type'], array(
'email',
))) {
$targets[$name] = array(
'name' => $instance['label'],
'callback' => 'email_feeds_set_target',
'description' => t('The @label field of the node.', array(
'@label' => $instance['label'],
)),
);
}
}
}