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!

Support from Acquia helps fund testing for Drupal Acquia logo

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
FileSize
4.67 KB

Adding checkbox for all three email options to disable mails .

Pradnya Pingat’s picture

FileSize
4.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
FileSize
4.47 KB
3.96 KB

Fixed whitespace issues as suggested in #5.