You are here

function bigint_feeds_processor_targets_alter in Big Integer 7

Implements hook_feeds_processor_targets_alter().

See also

FeedsNodeProcessor::getMappingTargets().

File

./bigint.feeds.inc, line 12
Integration with the Feeds module.

Code

function bigint_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(
      'number_bigint',
    ))) {
      $targets[$name] = array(
        'name' => $instance['label'],
        'callback' => 'bigint_feeds_set_target',
        'description' => t('The @label field of the node.', array(
          '@label' => $instance['label'],
        )),
      );
    }
  }
}