Closed (won't fix)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2013 at 17:29 UTC
Updated:
5 Nov 2013 at 17:26 UTC
Jump to comment: Most recent
Comments
Comment #1
jyokum commentedCode needs some cleanup to meet standards. http://ventral.org/pareview/httpgitdrupalorgsandboxvincenzogambino203129...
Spelling mistake in .info file "description = Allor or deny"
Comment #2
cravecode commentedThis module is a neat idea, congrats!
My suggestions:
Comment #3
vincenzo gambino commentedThanks,
I'm gonna go through it very soon.
jyokum, creavecode, thanks a lot for your review.
Comment #4
vincenzo gambino commentedCode cleaned up http://ventral.org/pareview/httpgitdrupalorgsandboxvincenzogambino203129...
Created 7.x-1.x branch
Deleted master branch
Fixed spelling mistake
Removed t() functions
Created README.txt
Comment #5
PA robot commentedWe 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 #6
pere orgaHi!
Looks good.
IMHO you should use t() inside descriptions and wherever you can, but without including html markup. For example:
'#description' => t('Enter the domains...') . "<br />" . t('example.com') . "<br />" . t('example2.com'),Minor: Inside
email_domain_restriction_user_register_validate()you check if$domainsis empty, but you don't need to, because if it's empty it won't enter theforeach(). So as long as$domainsis an array you can drop theif().Comment #7
petu commentedHello Vincenzo!
My recomendations:
Put in t() wrapper:
descriptions infunction email_domain_restriction_admin_form($form, &$form_state)I am not a native English speakers, but IMHO the correct description should be
Allows or deny email addresses of particular domains.
This string exists in both *.info and *.module files.
Comment #8
vincenzo gambino commentedHi netol, hi petu,
thank you very much for your review.
I've wrapped in a t() function all the description in the format netol suggested and removed if($domain) statement into email_domain_restriction_user_register_validate()
Changed
email_domain_restriction_user_register_validate()function name to a general oneemail_domain_restriction_user_email_domain_validate()I've fixed the spelling as petu suggested.
On Ventral everything it's ok.
Ready to be reviewed.
Comment #9
petu commentedComment #10
vincenzo gambino commentedjyokum, creavecode, netol and petu,
I would like to thank you with your reviews.
Now let's wait.
Thanks a lot.
Comment #11
vincenzo gambino commentedAdded hook_permission, moved under admin/config/people and fixed spelling mistakes.
Comment #12
klausiI'll look at this now in the Project applications sprint
Comment #13
klausihttps://drupal.org/project/useremaildomain
This sounds like a feature that should live in the existing PROJECT_NAME project. Module duplication and fragmentation is a huge problem on drupal.org and we prefer collaboration over competition. Please open an issue in the PROJECT_NAME issue queue to discuss what you need. You should also get in contact with the maintainer(s) to offer your help to move the project forward. If you cannot reach the maintainer(s) please follow the abandoned project process.
If that fails for whatever reason please get back to us and set this back to "needs review".
Comment #14
vincenzo gambino commentedHi klausi,
thanks for your review,
I will try to reach the maintainer of the other project to not create a "duplicate projects".
On the other hands, my module does not depends on any other projects (just the core one). This makes it lighter and easier to install.
You can allow or disallow domains on registration and on profile update. So you can give access just to example.com or not give access to example.com
It uses drupal default email checker for syntax.
It will be extended to comments email and to all the email fields (webform or other forms with the chance to enable it for single fields).
Further features are different from the other projects and drush installation will be added.
Comment #15
PA robot commentedClosing due to lack of activity. Feel free to reopen if you are still working on this application (see also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.