Webform Replay extends the excellent Webform module by adding an option to "replay" selected webform components.
This module is ideal for situations where multiple webform submissions per user are allowed, and some of that information is likely to be repeated on each submission.
For example, a field for the user's name is almost certain to be the same for each entry. The user's address is another field that could reasonably be expected to change only occasionally.
By enabling webform replay for these fields, the user need only complete them for the initial webform submission. On subsequent entries, these fields will be pre-populated with the values from the previous submission.
git clone --branch 7.x-1.x https://git.drupal.org/sandbox/Rijidij/2564565.git webform_replay
Comments
Comment #2
PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxRijidij2564565git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #3
rijidij commentedFixed minor formatting issues reported by PA robot.
Comment #4
rijidij commentedFixed minor formatting issues reported by PA robot.
Comment #5
swarad07For most part the module is fine, I have issues with following code. It seems to be referring to a Readme.txt file but there is'nt one in your code.
Comment #6
rijidij commentedThanks swarad07 for your review.
The hook_help() code was pretty much a cut-and-paste from https://www.drupal.org/node/161085#hook_help, which provides a fall back to README.txt if a markdown version is not found. I originally supplied both versions of the readme file, but the PA bot says there should be only one.
Maybe the documentation should be updated accordingly...
Anyhow, I have now removed the else clause from my code.
Thanks again,
Craig
Comment #7
feyp commentedAutomated Review
No automated tests, but this is not a requirement.
Manual Review
dirname(__FILE__)here.hook_help()implementation: Get rid of the twoelsestatements containing$output = '<pre>' . $readme . '</pre>';. Initialize$outputonce before you check for the presence of markup module and override it, if markup module is present.@paramand@returndocumentation (see API documentation and comment standards).webform_replay_form_webform_component_edit_form_alter(), the Implements line should also contain the form builder method you alter:Implements hook_form_FORM_ID_alter() for webform_component_edit_form()..objectorNULL, use@return object|nullhere.The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #8
PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #9
rijidij commentedReview changes have been implemented.
Comment #10
swarad07Pareview.sh is giving 1 space errors in module file. Looks like they can be autofixed with PHPCBF.
http://pareview.sh/pareview/httpgitdrupalorgsandboxrijidij2564565git
FILE: /var/www/drupal-7-pareview/pareview_temp/webform_replay.module
----------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 9 LINES
----------------------------------------------------------------------
18 | ERROR | [x] Expected 1 blank line after function; 2 found
40 | ERROR | [x] Expected 1 blank line after function; 2 found
56 | ERROR | [x] Expected 1 blank line after function; 2 found
80 | ERROR | [x] Expected 1 blank line after function; 2 found
125 | ERROR | [x] Expected 1 blank line after function; 2 found
158 | ERROR | [x] Expected 1 blank line after function; 2 found
194 | ERROR | [x] Expected 1 blank line after function; 2 found
207 | ERROR | [x] Expected 1 blank line after function; 2 found
224 | ERROR | [x] Expected 1 blank line after function; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Will do a manual review in some time.
Comment #11
rijidij commentedBlank lines removed.
Comment #12
visabhishek commentedComment #13
visabhishek commentedModule looks good and working for me. I think we don't have any blocker points. So i am marking as RTBC.
@Rijidij : Some suggestions are :
1: Follow the Readme template for the readme.txt https://www.drupal.org/node/2181737
2: Remove extra blank line from functions , ie :
function _webform_replay_get_previous_submission($nid)function webform_replay_preprocess_webform_components_form(&$variables)function webform_replay_admin($form, &$form_state)function webform_replay_help($path, $arg)Comment #14
mlncn commentedThanks for your contribution, Rijidij! You are now a vetted Git user. You can promote this to a full project.
When you create new projects (typically as a sandbox to start) you can then promote them to 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 stay involved!
Thanks, also, for your patience with the review process, especially my slowness in approving following review. We know it's broken and are trying to fix it.