Skip to content
Snippets Groups Projects
Commit e0c90c7a authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Use consistent set target callbacks.

parent 464f857a
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ function text_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_nam ...@@ -23,7 +23,7 @@ function text_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_nam
if (in_array($info['type'], $text_types)) { if (in_array($info['type'], $text_types)) {
$targets[$name] = array( $targets[$name] = array(
'name' => check_plain($instance['label']), 'name' => check_plain($instance['label']),
'callback' => 'field_feeds_set_target_text', 'callback' => 'text_feeds_set_target',
'description' => t('The @label field of the entity.', array('@label' => $instance['label'])), 'description' => t('The @label field of the entity.', array('@label' => $instance['label'])),
); );
} }
...@@ -33,7 +33,7 @@ function text_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_nam ...@@ -33,7 +33,7 @@ function text_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_nam
/** /**
* Callback for mapping text fields. * Callback for mapping text fields.
*/ */
function field_feeds_set_target_text($source, $entity, $target, $value) { function text_feeds_set_target($source, $entity, $target, $value) {
if (empty($value)) { if (empty($value)) {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment