function flickrfield_feeds_processor_targets_alter in Flickr 7
Implements hook_feeds_processor_targets_alter().
See also
FeedsNodeProcessor::getMappingTargets()
File
- field/
flickrfield.feeds.inc, line 13 - Feeds mapping implementation for the Flickr module.
Code
function flickrfield_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(
'flickrfield',
))) {
foreach ($info['columns'] as $id => $column) {
$targets[$name . ':' . $id] = array(
'name' => check_plain($instance['label'] . ' ' . t('(@id)', array(
'@id' => $id,
))),
'callback' => 'flickrfield_feeds_set_target',
'description' => t('The field instance @label -column @id.', array(
'@label' => $instance['label'],
'@id' => $id,
)),
);
}
}
}
}