function phone_feeds_processor_targets_alter in Phone 7
Same name and namespace in other branches
- 7.2 phone.feeds.inc \phone_feeds_processor_targets_alter()
Implements hook_feeds_processor_targets_alter().
See also
FeedsNodeProcessor::getMappingTargets().
File
- ./
phone.feeds.inc, line 12 - Implements Feeds support for Phone fields.
Code
function phone_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'] == 'phone') {
$targets[$name . ':url'] = array(
'name' => check_plain($instance['label']),
'callback' => 'phone_feeds_set_target',
'description' => t('The @label field of the node.', array(
'@label' => $instance['label'],
)),
);
}
}
}