Ability to enable or disable '[x] joined [site]...' emails

geodaniel - February 20, 2007 - 15:43
Project:Organic Groups Mandatory Group
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

It would be nice to have the option of disabling these emails in the admin settings for the module.

#1

pwolanin - February 20, 2007 - 16:35

hmmm, yes this would be a relatively simple change. feel free to test and submit a patch.

#2

geodaniel - February 20, 2007 - 16:45

It's on my long list of things to do, but as you say it's pretty simple, so I should be able to fit it in pretty soon :)

#3

geodaniel - March 16, 2007 - 12:44
Status:active» needs review

Attached is a patch against 4.7 branch that will add this option (default is to email admins still). I've not tried out the 5.x version of this module yet, but I imagine a slightly modified version of the patch would be applicable there too.

AttachmentSize
og_mandatory_group_email.patch 5.34 KB

#4

geodaniel - March 16, 2007 - 13:09

Sorry, there was a typo in that from a last minute change. Latest version attached.

AttachmentSize
og_mandatory_group_email_0.patch 5.33 KB

#5

pwolanin - March 18, 2007 - 02:16

I need to test this, still. Also, I'd suggest slightly different language for the settings form item. Something like:

<?php
  $form
['og_mandatory_group_mail'] = array(
     
'#title' => t('Email group managers'),
     
'#type' => 'checkbox',
     
'#default_value' => variable_get('og_mandatory_group_mail', 1),
    
'#description' => t('Send email to a group's managers when a new user joins the site and joins their group or is assigned to it as a mandatory group.),
  );
?>

#6

pwolanin - March 18, 2007 - 02:21

Hmmm, maybe it should be more like:

<?php
  $form
['og_mandatory_group_mail'] = array(
     
'#title' => t('Email mandatory group managers'),
     
'#type' => 'checkbox',
     
'#default_value' => variable_get('og_mandatory_group_mail', 1),
     
'#description' => t("Should email be sent to the mandatory group's managers when a new user joins the site?"),
  );
?>

#7

geodaniel - March 19, 2007 - 11:19

Sure, sounds good to me - it makes it clearer who will receive the emails.

#8

Junyor - April 29, 2007 - 00:13
Version:HEAD» 5.x-1.0-beta
Status:needs review» reviewed & tested by the community

Updated patch to Drupal-5.

AttachmentSize
contrib-5.og_man_group.admin-email.junyor.patch 5.27 KB

#9

geodaniel - August 8, 2007 - 14:10

Thanks for the updated patch. It would be great to get this into the module.

#10

geodaniel - June 2, 2008 - 08:00
Status:reviewed & tested by the community» needs review

#11

geodaniel - September 16, 2008 - 10:36

It would also be good to get this into the D6 release, but the patch will need re-rolling as all the hunks fail.

#12

darren.ferguson - September 16, 2008 - 15:23

Have patched the d6 module for this functionality the patch is attached.

AttachmentSize
og_mandatory_group_email_admin.patch 6.49 KB

#13

pwolanin - September 21, 2008 - 21:02

please double-check your patch. Looks like you made whitespace changes (e.g. line endings ) that amek it difficicult to see where the actual changes occur.

#14

pwolanin - September 21, 2008 - 21:24
Version:5.x-1.0-beta» HEAD

#15

darren.ferguson - September 22, 2008 - 15:18

I do not see any line endings in the patch, the reason for the changes is the if statement there that has moved everything on the patch.

#16

tsi - June 5, 2009 - 11:14

Subscribing, very wanted feature.

#17

trjohnson - August 13, 2009 - 17:38
Version:HEAD» 6.x-1.0-beta1

We are running a site and encounter a strange side-effect related to this topic. We have Real Name installed, when these emails are generated from the site the username gets translated into random text, e.g. 'zcpECkyaNK' instead of the normal username.

Being able to modify the notification would be wonderful, or baring that, being able to disable these messages would be helpful too.

 
 

Drupal is a registered trademark of Dries Buytaert.