This is my first D7 module.
This module extends the Webform module and allows your users to create new Webform Submissions pre filled with the data from previous Webform Submissions. When your users click the "Prefill new" link from the results, they will be redirected to a brand new Webform Submission in "draft" mode, pre filled with the values from whichever submission they chose, allowing them to change whichever data may differ in the new submission and submit it.This can be specially useful in cases where your users need to fill the same Webform periodically with little to no changes.
Prefill submission has its own permissions, as users may or may not be allowed to create new prefilled forms, but not to edit existing ones, etc.
Comments
Comment #1
misc commentedHi, and welcome with your application!
It could take some time to get a review, we have a lot of waiting applications in the queue. Meanwhile please take a look at the coding standards issues: http://ventral.org/pareview/httpgitdrupalorgsandboxvyz1647506git and also you should not work in the master branch but 7.x-1.x.
Comment #2
chintan.vyas commentedHere are some suggestions :
Regards,
Chintan Vyas.
Comment #3
chintan.vyas commentedComment #4
a_thakur commentedHi,
You are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
Normally when a hook is implemented, convention used to comment the implementation is as follows.
So please change these accordingly in the .module file. Line # 13, #25, #94.
There are lot of unnecessary comments in the code.
For example in the line #36, #49, #66, #96, #97, #100 in the .module file. Please remove these or make it more appropriate.
According to coding standards. There must be a space between the // and the start of the comment. And the comment should be ended with a full stop.
Example.
Most of lines in the code are exceeding margin line of 80 characters: http://drupal.org/coding-standards#linelength.
Set your editor to show the magic print margin line of 80 characters. Keeping these short assists code readability among other things.
In the implementation of hook_menu(). Line # 73.
There $items = array() is not required. And It is best to avoid underscores in the menu items. So change to
The files have random new line at the end of the file. 2 in .module, 3 in .info and none in .inc file. Just add a single new line to the end of the file. This causes additional lines in GIT patches.
Will post more review soon. Would be good you could look at these for the time being.
Not really sure whether this applies for you. But you could have a look at this too: http://groups.drupal.org/node/195848
Comment #5
a_thakur commentedA bit more.
Line #24 to #36.
Change to
Comment #6
a_thakur commentedHi,
The link http://git.drupal.org/sandbox/Vyz/1647506.git in the Issue summary does not work.
In the webform.clone.inc
Change to
Comment #7
misc commented@a_thakur please review older applications, it is better to review the oldest ones in the queue to get a better workflow in the issue queue.
Comment #8
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.