Hi there,
It would be nice to have this module integrated with webform. It would be very nice to be able to import 1) webform nodes and 2) webform submissions.

For an initial approach to importing submissions you can take a look into webform_import module (only Drupal 6).

Thanks a lot!!
emi

Comments

Assigned:Unassigned» drewish

I've been doing some work on this but it's focused on submissions.

Version:master» 7.x-2.x-dev
Status:Active» Needs work
StatusFileSize
new8.92 KB

Here's some preliminary stuff. I've been able to insert submissions with text fields. I haven't gotten around to messing with more complex types.

StatusFileSize
new9.59 KB

Getting closer, I've tested most field types other than grid and hidden.

Status:Needs work» Needs review
StatusFileSize
new9.99 KB

Realized we should pass the node into our DestinationHandlers. Also throw an exception if the pass in a non-webform node.

This is getting close. I'd love some maintainer feedback.

Status:Needs review» Needs work

Huh, d.o seems to having some trouble, lost my previous reply - anyway, fields() can take $entity_type and $bundle parameters, so you can restrict it to $bundle=='webform'...

Status:Needs work» Needs review
StatusFileSize
new8.5 KB

Meant to say:
I thought I was following the pattern in MigrateExtrasFlagHandler::fields() but now that I look at it they're calling the module_exists to see if it's safe to call the function. That code is commented out so I'll just delete it since I didn't actually use any of it.

Status:Needs review» Needs work
StatusFileSize
new8.48 KB

This has a better __toString(), correctly computes update/insert counts when specifying sids an has some WIP code to pick the value of select components. Use the last patch then just drop this in over it. I didn't want to bother re-rolling right now.

Status:Needs work» Needs review
StatusFileSize
new10.81 KB

I think this should be pretty good. Got the selects able to look up keys or values based on an argument.

Status:Needs review» Fixed

Committed to 7.x-2.x

Status:Fixed» Closed (fixed)
Issue tags:-webform, -integration

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