As it is, feeds allows to import all the users from one file as active or blocked in a general way (all blocked or all active) but it doesn't provide a mapper for it, I think such thing would be useful when synchronizing users from other systems.
I'm attaching a patch.

Comments

pcambra’s picture

Status: Active » Needs review
StatusFileSize
new627 bytes

here it is

mrharolda’s picture

Status: Needs review » Reviewed & tested by the community

Nice and welcome addition!

dooug’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.29 KB

I updated the patch to convert the incoming values from text to binary status value if necessary. Thought it would be a nice addition (and helped with what I was doing).

dooug’s picture

StatusFileSize
new1.29 KB

oops, fixed a typo in my patch. (note to self: test my own patches before posting)

dooug’s picture

StatusFileSize
new1.3 KB

duh, forgot break; in the switch

dooug’s picture

StatusFileSize
new1.45 KB

Ok. Here is my patch, ignore my reckless attempts at patches previous... ;-P

kking’s picture

Status: Needs review » Closed (fixed)

Patch from #1 added to 7.x-2.x branch. Thanks.
http://drupalcode.org/project/feeds.git/commit/41f70fe

@dooug - This seems like a good addition. Can you create a new feature request issue for this, now that we've committed #1 into the dev branch. Thanks!

kking’s picture

Status: Closed (fixed) » Fixed
dooug’s picture

Status: Fixed » Closed (fixed)

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