Great module - thank you!

Requesting that on the Node Ownership Settings page, under Email Settings that for each email there is an option (checkbox?) like "Do not send these emails".

I actually only need for the first one, Admin email. With thousands of nodes being claimed on my site, I would like to cut down on all of these emails coming back to me that I don't need.

Even though I would only want to "turn it off" for one of the 3 emails, it makes sense to give this option to not send the emails for each of the 3 emails types, since others might want to disable all of the emails.

Thank you!

Comments

swarad07’s picture

Acknowledged, we will add this in our plan.

Pradnya Pingat’s picture

Assigned: Unassigned » Pradnya Pingat
Pradnya Pingat’s picture

Status: Active » Needs review
StatusFileSize
new4.67 KB

Adding checkbox for all three email options to disable mails .

Pradnya Pingat’s picture

StatusFileSize
new4.65 KB

Adding checkbox for all three email options to disable mails .updating coding standard issues.

swarad07’s picture

Status: Needs review » Needs work
+++ b/nodeownership.module
@@ -157,8 +157,16 @@ function nodeownership_claim_insert() {
+  ¶
...
+    $mail = drupal_mail('nodeownership', 'user_claim', $recipient['mail'], $language);
+    drupal_set_message(t('Your claim has been recorded and an email has been sent to the site administrators.'));
...
+  else {
+    drupal_set_message(t('Your claim has been recorded.'));   ¶
+  }

Remove Empty spaces. There are many in your patch.

vinay15’s picture

Assigned: Pradnya Pingat » vinay15
Status: Needs work » Needs review
StatusFileSize
new4.47 KB
new3.96 KB

Fixed whitespace issues as suggested in #5.