I have created this module for node email, when we create or update node then send email to site administrator. I hope this module helps the community and I'm looking forward to hearing any feedback or improvement suggestions!

Project link

https://www.drupal.org/project/node_email/

Git instructions

git clone --branch 7.x-1.x-dev https://git.drupalcode.org/project/node_email.git

PAReview checklist

https://pareview.sh/ broken right now

CommentFileSizeAuthor
#8 node_email_notify.JPG29.52 KBvishal.sirsodiya

Comments

vishal.sirsodiya created an issue. See original summary.

vishal.sirsodiya’s picture

Status: Active » Needs review
avpaderno’s picture

Thank you for applying! I added the Git instructions for non-maintainer users and the PAReview checklist link. Reviewers will check the project and post comments to list what should be changed.

If you haven't done it, yet, please check the PAReview report and fix what needs to be fixed. There could be some false positives; verify that what reported is correct, before making any change.

avpaderno’s picture

Status: Needs review » Needs work

The repository is using wrong branch names. See Release naming conventions, which explains which are the correct branch and tag names.

vishal.sirsodiya’s picture

Status: Needs work » Needs review

I have resolved all issues and change branch name, new branch name is 7.x-1.x-dev (follow below links).

https://www.drupal.org/node/1015226

New git URL :-
https://git.drupalcode.org/project/node_email/tree/7.x-1.x-dev/

klausi’s picture

Issue summary: View changes
klausi’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -PAreview: single application approval +DevDaysTransylvania

Thanks for your contribution!

* node_email_form_alter(): this add a submit handler to every single form in Drupal. You should only add it for node forms, right?
* node_email_mail_alter(): why do you need to set these special mail headers? Please add a comment in code.
* _node_email_handler(): the arg() call should be removed when you just add your submit handler when necessary.

I don't see security issues otherwise. We have more than 100 lines of code here, so I think we can do a full approval.

vishal.sirsodiya’s picture

StatusFileSize
new29.52 KB

Thanks for review.

* Not every single form, this handler for only node forms like ndd/add/news or node/{nid}/edit.
* special mail header for preparing mail subject and body.
* arg() use for check URL arguments. because "_node_email_handler" add only in content type forms.

Please review again I have added some code for configuration.

avpaderno’s picture

Assigned: Unassigned » avpaderno
Status: Reviewed & tested by the community » Fixed

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, 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.

I thank all the dedicated reviewers as well.

Status: Fixed » Closed (fixed)

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