Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed Userpoints Contrib on a test site, assigned point levels to roles, and used Retroactive to assign roles based on previous activity.
Before I did that, I made sure both Email modules (Email Notify and Email Single Notify) were disabled on the Modules page.
Nevertheless, emails were sent to all the users who had acquired a new role, which was not what I wanted.
There should be a way to disable sending emails from Userpoints Role (other than by hacking the module).
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#2 | 0001-allow-disabling-email-on-role-change.patch | 838 bytes | drone.ah |
Comments
Comment #1
kbahey CreditAttribution: kbahey commentedUserpoints role uses Drupal's built in email functionality, and does not depend on any other modules that send emails.
This is why it is unaffected by what else is there installed to send emails.
So, this is now a feature request. A setting to enable/disable email sending by this module. I am not sure if version 6.x of notifications can already do what you want. You can try it on a test site.
Comment #2
drone.ah CreditAttribution: drone.ah commentedNot a complete solution, but provides a variable that can be set manually to disable sending of emails...
something like the following should disable emails with the patch attached.
INSERT INTO variable VALUES ('userpoints_role_send_email', 'b:0;');