send email confirming pending registration #2916

This commit is contained in:
Tobias Diekershoff 2016-11-18 20:16:22 +01:00
parent 23bc0eae29
commit f4c52f5a0e
2 changed files with 28 additions and 0 deletions

View file

@ -133,6 +133,7 @@ function register_post(&$a) {
$admin_mail_list
);
// send notification to admins
foreach ($adminlist as $admin) {
notification(array(
'type' => NOTIFY_SYSTEM,
@ -149,6 +150,11 @@ function register_post(&$a) {
'show_in_notification_page' => false
));
}
// send notification to the user, that the registration is pending
send_register_pending_eml(
$user['email'],
$a->config['sitename'],
$user['username']);
info( t('Your registration is pending approval by the site owner.') . EOL ) ;
goaway(z_root());