Allow update notifications for all cases

engineerity - March 24, 2009 - 20:38
Project:User registration notification
Version:5.x-1.9
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:by design
Description

Currently no emails are sent for sites that require admin approval for new registrations. This also block emails for profile updates. I have changed one line of code to enable this.

I changed this:
if ($account->uid != 1 && (variable_get('user_register', 1) == 1 ? $account->status : !$account->status)) {
to this:
if ($account->uid != 1 && ((variable_get('user_register', 1) == 1 ? $account->status : !$account->status) || ( $action == 'update') ) ) {

Nick

#1

rmiddle - March 29, 2009 - 21:27
Status:active» by design

If you are using admin approval of new registrations then drupal core sends you an email.

 
 

Drupal is a registered trademark of Dries Buytaert.