$user = user_load($uaccount->uid);
$variables['!approved'] = $user->status ? 'approved': 'blocked';

Those two lines just need to be added in the user_register_notify_mail function...

Depending on site configuration, a lot of accounts can be created automatically for non-sensitive roles, but where certain roles require additional processing.

Putting the status in the email will let the administrator know if he really needs to get off the couch and go look at this user, or if the system is already handling it.

Comments

rmiddle’s picture

Status: Active » Fixed

Commit to dev branch will be in next release 6.x-1.12 & 7.x-1.0-alpha2.

Thanks
Robert

Status: Fixed » Closed (fixed)

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

jvieille’s picture

Status: Closed (fixed) » Needs work

The status is included, but is wrong
It is notified as "Blocked" when set to "Active

hass’s picture

Issue summary: View changes
Status: Needs work » Closed (cannot reproduce)

Tested with D7