function rolereference_feeds_processor_targets_alter in Role Reference 7
Implements feeds_processor_targets_alter().
File
- ./
rolereference.module, line 304
Code
function rolereference_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_name) {
// Set up feeds mapper for rolereference fields.
foreach (field_info_instances($entity_type, $bundle_name) as $name => $instance) {
$info = field_info_field($name);
if ($info['type'] == 'rolereference') {
$targets[$name] = array(
'name' => check_plain($instance['label']),
'description' => t('Role reference field.'),
'callback' => 'rolereference_set_target',
);
}
}
}