The Membership Entity Expiration Notice module provides rules integration and logging for Membership Entity so users can be notified about expiring memberships. Created the module because there were no similar modules available for Membership Entity only some custom pearl program posted at https://www.drupal.org/node/2385155

Project sandbox: https://www.drupal.org/sandbox/kiss.jozsef/2594193

Git clone: git clone --branch 7.x-1.x http://git.drupal.org/sandbox/kiss.jozsef/2594193.git membership_entity_expiration_notice

Comments

kiss.jozsef created an issue. See original summary.

PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxkissjozsef2594193git

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.

kiss.jozsef’s picture

Fixed the syntax and git errors.

rahulbaisanemca’s picture

Hi kiss.jozsef kindly add hook_menu with this format. https://www.drupal.org/node/161085

Thanks,
Rahul.

kiss.jozsef’s picture

Hi rahulbaisanemca, could you please explain why to add hook_menu? or you meant hook_help ? because in the documents there is reference took hook_help.

rahulbaisanemca’s picture

Hi @kiss.jozsef thanks for pointing out my mistake, yes i meant to add hook_help but by mistakenly i have written hook_menu. :)

kiss.jozsef’s picture

Status: Needs work » Needs review

Implemented hook_help and added clear log functionality

rahulbaisanemca’s picture

@kiss.jozsef for implementing hook_help.

neeravbm’s picture

Automated Review

Best practice issues identified by pareview.sh / drupalcs / coder.

Review of the 7.x-1.x branch (commit 86eb25e):

Coder Sniffer has found some issues with your code (please check the Drupal coding standards).
FILE: ...-7-pareview/pareview_temp/membership_entity_expiration_notice.module
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
72 | ERROR | [x] Array closing indentation error, expected 6 spaces but
| | found 10
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

Note that perfect adherence to Drupal Coding Standard is NOT a reason to block an application, except for total disregard of them. However, modules should follow them as closely as possible.

Manual Review

Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
No: Does not follow the guidelines for in-project documentation and/or the README Template.
README.txt
Please take a moment to make your README.txt follow the guidelines for in-project documentation.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
  1. Please fix the Indentation Error in Line 72 of membership_entity_expiration_notice.module as described by the Automated Tests above

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.

abhishek.pareek’s picture

Hi kiss.jozsef

Well I saw your code and its good, except a thing:
You are storing some variable in a validation callback, which is not a good way, save your data in form submit not in validation callback.
Add a submit function in that form alter of yours and then save your variable there instead of doing all that during validation.

kiss.jozsef’s picture

Hello abhishek.pareek,

I fixed it, added the callback as submit and not as validate, not sure why i wrote it like that to begin with.
Thanks for the review.

visabhishek’s picture

Status: Needs review » Reviewed & tested by the community

Module looks good and working for me. I think we don't have any blocker points. So i am marking as RTBC.

Only one suggestion :
Delete the variable "membership_entity_type_settings"

function hook_uninstall() {
  variable_del('membership_entity_type_settings');
}
kiss.jozsef’s picture

Hello visabhishek,
added hook_uninstall

Thanks for the review

mlncn’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contribution, kiss.jozsef! 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.