Webform Remote Post is a module that works along the Webform module. It eases the integration between Webforms and other web applications by extending the out-of-the-box functionality if the Webform module.
By default, the Webform module only knows how to email successful form submissions individually to one or more email addresses. In an enterprise environment (a company website that has forms that generate leads for example), having a Drupal site send hundreds of emails per day to a person is not scalable. This module allows web form submissions to be sent automatically to any number of 3rd party applications - no more emails, just a direct passing of the data between the Drupal site and your other systems.
Previously, if you needed to do further processing of webform submits, you would need to create a custom module and write some code to do that you need. With this module, you don't need to write code anymore. Just point a webform to one or more systems for those systems to handle the data.
Per the spirit of collaboration over competition, before starting this module, I got in touch with quicksketch to see if the functionality could be added to the Webform module. He seemed to like the idea, but for a companion module, rather than changing Webform itself: http://drupal.org/node/1728328#comment-6380976
- Project page: http://drupal.org/sandbox/enrique.delgado/1786762
- Git repo:
git clone --recursive --branch 7.x-1.x http://git.drupal.org/sandbox/enrique.delgado/1786762.git webform_remote_post - For Drupal 7
Note: This is my first contrib module :-]
Regards,
Enrique.
Comments
Comment #1
ahlofan commentedHi,
Your module seems straight forward, however, some little problems found here...
Please fix as much errors as possible found here: http://ventral.org/pareview/httpgitdrupalorgsandboxenriquedelgado1786762git
Comment #2
smiletrl commentedHi, this module looks great. Although, some little concerns are followed:
In webform_remote_post.install file, section of hook_uninstall(), if this function does nothing, I think we could safely remove this part code.
For
function webform_remote_post_update_7001(), this hook http://api.drupal.org/api/drupal/modules%21system%21system.api.php/funct... is used to update the site. When enabled firstly, this function doesn't run, and in database, we can't see field 'enabled' in table webform_remote_post_targets. And, I run update.php in site, but this function doesn't work either .Not sure does this field get used later, but I guess we could do something better with this code. Why don't we directly add the field in 'hook_schema()' :)In webform_remote_post.targets.inc,
drupal_render($form['targets'][$tid]['status']),I'm not sure what's included in the form element that you want to usedrupal_render, but I guess if this form element is not that complicated(another structured array tree?), we could directly use the check_plain($form['targets'][$tid]['status'])?Comment #3
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.
If you reopen this please keep in mind that we are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #4
enrique.delgado commentedOk, thanks. I'll have something to review soon. Sorry for the delay.
Comment #5
enrique.delgado commentedFirst off, thanks so much for your reviews so far and an apology for taking so long to address the issues found. I got a little demotivated to see so many issues :-/ But I'm back!
webform_remote_post_update_7001()in and added theenabledcolumn into the main schema as suggested. Great idea. I was not able to replacedrupal_render()withcheck_plain():-/bootstrap.inccomplains when I do so:Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain()Thanks!
Comment #6
blc commented* The git repo in your summary needs to be updated for anonymous copy/paste
git clone --recursive --branch 7.x-1.x http://git.drupal.org/sandbox/enrique.delgado/1786762.git webform_remote_post
* No master branch in the git repo. All is well there.
* 12 functions, and 300+ lines of code. Module size is ok.
* PHP_CodeSniffer did not find any problems.
* Code is well commented.
* Line 30 of webform_remote_post.module, "will" is typo'd.
* No obvious security issues found.
Just a couple of minor things to fix. Other than that, looks good to me.
Comment #6.0
blc commentedFixed branch name.
Comment #7
enrique.delgado commentedHi blc,
webform_remote_post.modulehas been corrected.Thanks for reviewing my module!
Comment #8
iwhitcomb commentedThis all looks good to me, awesome module idea
Comment #9
enrique.delgado commentedThanks iwhitcomb! Okay, so what happens now? :-]
Also, I haven't been writing more features to my module because I do not want to modify what has been tested and reviewed by the community. Is it safe to do so in a branch? If so, what's the convention for that branch name (given that we do not use "master")? Would it be 7.x-dev?
Thanks everyone that has helped so far.
Comment #10
iwhitcomb commentedHonestly, I would wait on adding anything else to the module for now.
The review bonus will usually get you a faster response. It's kind of a pain, but worth it if you're anxious to get your application approved.
Comment #11
jthorson commentedThanks for your contribution, enrique.delgado!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
Thanks to the dedicated reviewer(s) as well.
Comment #12
enrique.delgado commentedW00t! Thank you jthorson and everyone that helped review this first module of mine! I'll take a look at the resources you pointed me to and flip the switch for the Drupal community to find my module.
Thanks all!
Comment #13.0
(not verified) commentedChanged git repo instructions for anonymous copy/paste