The attached patch provides support for saving the email address value for a redhen_email field. It probably wouldn't be very difficult to add support for the other field properties (home, bulk mailing status, etc), I just didn't need it for my particular project.
This patch steals heavily from #5 on #1361084: Feeds Mapper for Phone field needed.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 00-redhen_fields_feeds_integration-3.patch | 1.86 KB | jlyon |
| 00-redhen_fields_feeds_integration.patch | 1.88 KB | jlyon |
Comments
Comment #1
jlyon commentedWhen I ran my import the default parameter wasn't set so $redhen_contact->email was NULL. I fixed it by running a VBO, but clearly a little more work here is necessary.
Comment #2
nedjoThanks for posting the patch. This would be a welcome addition. I haven't tested. Here are some minor issues.
Should be redhen_fields.module rather than link.module.
The label parameter isn't used and so should be dropped:
Should use the LANGUAGE_NONE constant rather than the string 'und':
Comment #3
jlyon commentedHere's an updated version of the patch addressing the points above. Thanks for putting that together. Guess I was a little sloppy when I put it together.
Re:
LANGUAGE_NONE: I think we might want to use $field->language or something similar to truly make it multi-lingual, although I haven't done any testing with this:$field[$field->language][$i]['value'] = $v;Comment #4
levelos commentedPerhaps in a redhen.feeds.inc file?
Comment #5
bleedev commentedFeeds does not currently handle "non-core entities" (see http://drupal.org/node/1033202). Once Feeds resolves this issue, this issue could be re-opened.
Comment #6
bleedev commentedAlso, note that the redhen_fields_feeds_set_target function is missing the $mapping variable, which the language would then be set with:
Comment #7
levelos commentedSee RedHen Feeds.