function feeds_imagegrabber_feeds_processor_targets_alter in Feeds Image Grabber 7
Implements hook_feeds_processor_targets_alter().
See also
FeedsNodeProcessor::getMappingTargets().
File
- ./
feeds_imagegrabber.module, line 141 - Grabs images for items imported using the feeds module.
Code
function feeds_imagegrabber_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(
'image',
))) {
$targets[$name . ':fig'] = array(
'name' => check_plain($instance['label']) . ' (FIG)',
'callback' => 'feeds_imagegrabber_feeds_set_target',
'description' => t('The @label field of the node.', array(
'@label' => $instance['label'],
)),
);
}
}
}