Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2012 at 00:30 UTC
Updated:
16 Dec 2012 at 20:00 UTC
Text Selection module implements CSS3's ::selection pseudo-element providing a way to override the browser-level or system-level text selection highlight color with a color of your choosing.
This is a Drupal 7 module:
http://drupal.org/sandbox/revagomes/1552788
Direct link to the git repository:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/revagomes/1552788.git text_selection
Comments
Comment #1
patrickd commentedwelcome,
Good to see you could already fix all coding style issues ;)
Your project page and readme is a little short, you may have a look at..
tips for a great project page.
guidelines for in-project documentation.
We do really need more hands in the application queue and highly recommend to get a review bonus so we can come back to your application sooner.
regards
Comment #2
mac_weber commentedAs patrickd said, you should improve the README.
In addition, make people want to use your module. Tell them how it would help them.
You said you are going to make a screencast. This is a big plus!
Some mistakes I found:
blank lines on
text_selection.infoat lines 12, and 22and on
text_selection.variable.incat line 19So far, code looks good.
Later I will test it installing on Drupal.
Comment #3
revagomes commentedThanks @patrickd and @Mac_Weber.
I've improved the README.txt file and I've made some corrections on the code too.
Comment #4
pgogy commentedHello,
Ventral (http://ventral.org/pareview/httpgitdrupalorgsandboxrevagomes1552788git-7...) says
FILE: ...ew/sites/all/modules/pareview_temp/test_candidate/text_selection.module
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
14 | ERROR | Do not use t() in hook_menu()
15 | ERROR | Do not use t() in hook_menu()
--------------------------------------------------------------------------------
Hope this helps.
Comment #5
ankitchauhan commentedHi
manual review:-
Comment #6
revagomes commentedThanks for the feedback!
I'll fix this problems and commit the new version for testing.
Comment #7
a_thakur commentedHi,
Some more reviews regarding coding standards.
The lines in the code should not exceed margin line of 80 characters: http://drupal.org/coding-standards#linelength.
Comment #8
mondrakeHello revagomes,
I am a fellow applicant and have been reviewing your project towards geeting a review bonus for my application.
Automatic review:
Manual review:
Food for thought:
Overall, IMHO this looks RTBC.
Regards
mondrake
Comment #9
a_thakur commentedHi,
There are some typos in the README.txt
Line #23: CONFIGURATION has been misspelled.
Line #31: Interface has been misspelled.
In the text_selection.admin.inc. Line #41 to Line #52.
Please read the documentation of form_set_error.. You misunderstood the $name parameter of form_set_error.
The correct function should be as follows. The word 'error' should be replaced by the name of the form element. As in this case the corresponding form element is highlighted in red color to indicate error whereas in case you set it to 'error' no such highlighting should be shown in case of error. So change the function to as follows.
Also include a validation to handle the situation in case the text field is left empty.
In the file text_selection.variable.inc, the comment(Line #3) should end with full stop.
Comment #10
a_thakur commentedChanging the status. Could you make the changes mentioned in above comment.
Comment #11
revagomes commentedThanks for the feedback and the fix suggestions.
I'll take a look at this and commit the changes ASAP.
Comment #12
revagomes commentedI've made the adjustments for the validation and also corrected the misspelled words in the README file.
Changing status to needs review.
Comment #13
jvdurme commentedHi there,
still some minor coding standard issues:
And a little typo in text_selection.install: line 3: TExt > Text.
I was also wondering why you have two arguments specified in hook_preprocess_HOOK()?
It just needs &$variables. And perhaps indicate that you are implementing this specific hook in the function's comment.
Please fix these issues, but otherwise, looks RTBC to me. Nice module!
Comment #14
revagomes commentedThanks for the feedback @jvdurme.
All those issues are fixed right now.
Comment #15
jvdurme commentedHi there,
if you want Drupal admins to approve your project faster, get a review bonus as described here: http://drupal.org/node/1410826.
If you have manually reviewed 3 other projects, you can add a review bonus tag and your approval will go faster. Then I'm talking about days instead of weeks or months.
Comment #16
stborchertCongratulations: your are now a vetted git user and from now on you are allowed to create full projects.
Some minor notes:
text_selection_settings_form_submit()is not really needed here because using system_settings_form for your form handles the storage of your variables automatically.Comment #17
klausi@stBorchert: please also use the template from http://groups.drupal.org/node/184389 when approving applications:
Thanks for your contribution, revagomes!
stBorchert 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.