Description
A Drupal module with some node add-ons. Theses include the following:
A simple module to add to your site that lets you specify a default value to be cleared on click, and to reappear when the input is left empty
This module enables admin user to pre-populate text, and textarea form fields with values to describe users how to fill in the form the way the admin users would like it to be.
Example, link text field: you could add -> http://
Admin user will be enable to fill in the setting page form (admin/settings/autofill) and save the information in the system.
Use a web tool like Firebug etc. to access the source code and then you'll be able to copy the textfield/textarea class or ID and paste it into the field that says ID
Link to module: http://drupal.org/sandbox/rui/1176850
| Comment | File | Size | Author |
|---|---|---|---|
| #17 | drupalcs-result.txt | 1.09 KB | klausi |
Comments
Comment #1
rcb.ferreira commentedComment #2
rcb.ferreira commentedComment #3
ivanbreet commentedPriority update as per http://drupal.org/node/894256
Comment #4
davisbenHi rcb.ferreira,
It appears that your git repo for the 6.x-1.x branch is missing js/autofill.js, so the module is not working properly. Please add that file to the repository, and set this back to Needs Review. Thanks!
Comment #5
rcb.ferreira commentedThank you for taking the time to review this module.
You don't need autofill.js to use the Autofill module, because you can add the data under the Autofill settings page. I included the path "js/autofill.js" as a way to override the system generated Autofill JS code. I took this approach because I needed a way to GIT commit changes for this modules autofill data which would otherwise reside in the database.
Comment #6
dave reidThe file http://drupalcode.org/sandbox/rui/1176850.git/blob/refs/heads/6.x-1.x:/j... looks like it is an external library?
From the Drupal.org Git usage policy:
Comment #7
minnur commentedHi Rui,
1. Lines in README.txt should not exceed 80 characters.
And rename README to README.txt.
2. "if (empty($field['id']))" always use "{}" around if/else statements, even if it is just one line.
This often leads to bugs if you add lines later. The same rule applies for "for (), while (), foreach ()"
3. For some reason I don't see this module on your profile page.
Thanks,
Minnur
Comment #8
rcb.ferreira commentedComment #9
patrickd commentedReview of the 6.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. Go and review some other project applications, so we can get back to yours sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #10
rcb.ferreira commentedMade necessary changes as requested.
Thank you for taking the time to review my module.
Comment #11
patrickd commentedSee http://ventral.org/pareview/httpgitdrupalorgsandboxrui1176850git
Comment #12
rcb.ferreira commentedThank you for taking the time to review my module.
I used the online drupal code sniffer, it's getting errors I really can't see what's the problem.
I made all the necessary changes. And still it's getting a few errors.
Could someone just have a look and let me know if I'm doing something wrong, thank you very much.
Comment #13
patrickd commentedautofill.module:
+46: [minor] Missing parenthesis after function name
* Implements hook_perm.->
* Implements hook_perm().autofill.admin.inc
86 | ERROR | Constants must be uppercase; expected SPECIFIC but found specific
86 | ERROR | Constants must be uppercase; expected GENERAL but found general
Be aware of using unescaped " in a string with "" ;-)
form_error($form, t("%field-id doesn\'t contain a CSS class or ID identifier (e.g. <em>#specific</em> for <em>id="specific"</em> and <em>.general</em> for <em>class="general"</em>).", array('%field-id' => $fields[$delta]['id'])));->
js/sample.js
21 | ERROR | Files must end in a single new line character
add an empty line to the end of this file
Comment #14
patrickd commentedSwitched back to needs review, so in-depth reviews won't be blocked by coding standart issues.
Comment #15
patrickd commented// double post, sorry, internet was hanging.
Comment #16
jthorson commentedDid a fairly quick review, but everything looks good!
Comment #17
klausiReview of the 6.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Go and review some other project applications, so we can get back to yours sooner.
manual review:
Comment #18
misc commentedThis application has been marked as 'needs work' for 19 weeks, and there is no contact form on the users profile page. I am closing this on.
@rcb.ferreira, if this is wrong, please reopen.
Comment #19
klausiClosing due to lack of activity. Feel free to reopen if you are still working on this application.