function hms_field_feeds_processor_targets_alter in HMS Field 7
Implements hook_feeds_processor_targets_alter().
See also
FeedsNodeProcessor::getMappingTargets().
File
- ./
hms_field.feeds.inc, line 13 - Feeds mapping implementation for the hms_feeds module.
Code
function hms_field_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 ($info['type'] == 'hms_field') {
$targets[$name] = array(
'name' => check_plain($instance['label']),
'callback' => 'hms_field_feeds_set_target',
'description' => t('The field instance @label of @id', array(
'@label' => $instance['label'],
'@id' => $name,
)),
);
}
}
}