Here's an initial port of this module to Drupal 7. A couple things to note:
- This only works with Webform 7.x-3.x, and there is no upgrade path from Webform x.x-2.x (it incorporates the patch found #897090: Authorize.Net Webform Module Does Not Support Webform 3.x Yet)
- I had to rewrite a considerable amount, including the database column names.
- I also made a number of performance enhancements (removed PHP regex and preg_ functions when not needed, etc.)
This patch should apply cleanly against the 6.x-2.x branch from Git.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1159506-3-authorizenetwebform-7x.patch | 20.29 KB | dandaman |
| #2 | 1159506-2-authorizenetwebform-7x.patch | 22.43 KB | dandaman |
| #1 | authorizenetwebform-D7-2.patch | 12.19 KB | theunraveler |
| authorizenetwebform-D7-1.patch | 24.59 KB | theunraveler |
Comments
Comment #1
theunraveler commentedHere's another pass a porting the module to D7.
A couple things to note:
I think this is pretty complete. It could use some unit/behavioral tests, but it seems to be functioning very well. I would like to see this released once some folks in the community test it and review the code.
Comment #2
dandaman commentedHere's the code I've been using on Drupal 7.x to apply against the latest 6.x-2.x branch. I haven't done a full compare of it to the 6.x-2.x code as it currently is, but it has been working on a couple production sites of ours for a number of months. If I have some time soon I may try to tidy it up a bit further.
Comment #3
dandaman commentedOK, updated it because I found a number of minor issues. The Quantity code was gone, some functions were just in different places or had different names, so I fixed those to be more like what is already there.
Comment #4
obsidiandesign commentedI've rolled this patch, with a few small changes, into a 7.x-2.x version. One problem is the existence of a hook_process() theme function in D7 that was causing problems with cron. I've changed the function name to authorizenetwebform_handle() and it works without conflict. There were some other small comma spacing changes. Thanks dandaman for providing the patch!