I know this was already asked but it was asked about Drupal 5 and solved. I am wondering if there is a way to have an e-mail sent to the admins when somebody applies for a role in Drupal 7. Does anybody have a fix? Somebody in the last thread said that they used Tokenized Actions but that doesn't look like an option anymore come 7.

Comments

jnicola’s picture

Category: Support request » Feature request
Priority: Major » Critical
Issue summary: View changes
Status: Active » Needs work

YES!

I personally just modified this module on another project to have this functionality. It seems undeniably useful to me.

I am envisioning the following:
1- In admin settings, allow an email to be enabled for approval.
1a- Allow customization of approval email subject and body.

2- In admin settings, allow an email to be enabled for denial.
2a- Allow customization of denial email subject and body.

3- Provide choice for who gets the email
3a - Choice 1 = super admin
3b - Choice 2 = all users with roles that have permission to approve users
3c - Choice 3 = a custom list of users

4- Allow admins to enable notifications for when users apply for a role, and provide similar options as to what is above for who gets the notifications.

jnicola’s picture

Assigned: hariselden » jnicola

Okay, latest commits in dev add administrative settings for email.

To be done:
1- Implement nescessary email hooks
2- Place conditional drupal mail calls in module where they belong
3- Extend admin settings to allow admin emails to go to Super Admins || roles with permission to approve users || fixed email address

jnicola’s picture

Getting close

1- Mail hook DONE
2- helper function for handling the three different varities of mail to send.
3- Application approved and application denied emails working and using settings forms.

To finish:
1- Get admin emails sending
2- Allow configuring who gets admin emails
2a- super admin
2a- all users with ability to approve roles (may be a sizable DB query?)
2a- Custom email entry.

jnicola’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs work » Fixed

Finished as follows:
Admin emails sending!!!

Allow configuring who gets admin emails!
-- super admin.
-- Custom email entry.

If people request additional functionality we can look into it. This seems good enough for an alpha roll to me though...

Status: Fixed » Closed (fixed)

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