I made a plugin wich makes the user import aware of custom declared user-profile fields.
It checks wether the profile module is activated, and will then list all custom declared profile fields so you are able to map to these fields.

I tested it with:

  1. Drupal 6.16
  2. Chaos tools 6.x-1.3
  3. Feeds 6.x-1.0-alpha14

And used the Feeds XML Parser

Comments

alex_b’s picture

Version: 6.x-1.0-alpha14 » 6.x-1.x-dev
Status: Needs review » Needs work

Interesting. This could be a patch to FeedsUserProcessor. No reason why we would use a separate processor here. Only thing I am worried about is the upgrade path to Drupal 7.

Have you thought about that?

alex_b’s picture

And of course, if to be committed to Feeds project, this functionality will need tests.

elliotttf’s picture

StatusFileSize
new2.52 KB

Here's a patch that does the same thing as DoubleJB's file.

Still need to write a test for this, if someone else wants to jump in though go ahead.

I haven't looked into the profile differences in D7 (just started playing with it last week) so I can't speak to that, but this does appear to be working for me in D6.

alex_b’s picture

#3:

- This functionality should be broken out into a mapper (e. g. like mappers/taxonomy.inc).
- Needs tests.

elliotttf’s picture

Status: Needs work » Needs review
StatusFileSize
new7.68 KB

Ok, here's the same idea with the profile fields split out into their own mapper and a really simple test to make sure it works.

alex_b’s picture

Title: Make user import custom profile fields aware » hook_feeds_user_processor_targets_alter(), mapper for profile fields
Status: Needs review » Fixed

Thank you for the solid patch, especially the tests helped review it fast.

I did some minor code style cleanup and committed it:

http://drupal.org/cvs?commit=382106

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

alibama’s picture

i'm trying to map fields to user profiles with the latest dev version and getting nowhere... if this was committed where did it go to? i've tried this http://drupal.org/node/1060230#comment-5758044 too with no luck... any assistance greatly appreciated

alibama’s picture

fwiw went back to the drawing board = i had been using feeds because it allowed clever mapping into organic groups via a nice patch, so i used user import to update the profile fields and leave the OG stuff alone and it seems to be working.. a bit of a hack, but for anyone else in a bind it works