Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Text field mapper doesn't support FeedsElement.
I mapped SimplePie's enclosure field with simple text field and after the import field is blank.
The reason of this behavior is that text field mapper just ignores all objects rather than to receive value from them.
feeds/mappers/field.inc
if (!is_array($v) && !is_object($v)) {
$field['und'][$i]['value'] = $v;
}
Comments
Comment #1
Sergii CreditAttribution: Sergii commentedAdd patch.
Comment #2
Sergii CreditAttribution: Sergii commentedNew patch from module's root folder.
Comment #3
Sergii CreditAttribution: Sergii commentedThe same behavior for the link field mapper.
Comment #4
Sergii CreditAttribution: Sergii commentedComment #5
twistor CreditAttribution: twistor commentedDon't do the is_string() or !empty() check here. It could be any scalar and the subsequent !is_array() and !is_object() checks will do just fine.
Comment #6
twistor CreditAttribution: twistor commenteddupe.
Comment #7
twistor CreditAttribution: twistor commentedcommitted a version of this to 7.x
http://drupalcode.org/project/feeds.git/commit/1c6777a
Comment #8
twistor CreditAttribution: twistor commentedComment #9
twistor CreditAttribution: twistor as a volunteer commented