From b0d6307f5dcaeb5ba284788c87ba22fa3680f605 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Wed, 13 Jan 2010 14:22:15 +0000
Subject: [PATCH] Do not use variable where not necessary, filter name of field
 on output.

---
 mappers/filefield.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mappers/filefield.inc b/mappers/filefield.inc
index 7e1d8e85..ed21fe7b 100644
--- a/mappers/filefield.inc
+++ b/mappers/filefield.inc
@@ -21,8 +21,8 @@ function filefield_feeds_node_processor_targets_alter($targets, $content_type) {
         $name = isset($field['widget']['label']) ? $field['widget']['label'] : $field_name;
         $targets[$field_name] = array(
           'name' => $name,
-          'callback' => $field['type'].'_feeds_set_target',
-          'description' => t('The URL for the CCK !name field of the node.', array('!name' => $name)),
+          'callback' => 'filefield_feeds_set_target',
+          'description' => t('The URL for the CCK @name field of the node.', array('@name' => $name)),
         );
       }
     }
-- 
GitLab