aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-10-28 13:40:30 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-10-28 13:40:30 +0100
commit96a68bcccb476dd1dd270dc9b341312cbd0a993d (patch)
tree39b319d9b25615c7c687a3e8161ae2d3cc077ddd /phpBB/includes
parent25d42b0f10506d0a5ab182201726e702d1fc16bd (diff)
parent9c636cfdbece8c0f9095dcb3012adaa6aefc92f2 (diff)
downloadforums-96a68bcccb476dd1dd270dc9b341312cbd0a993d.tar
forums-96a68bcccb476dd1dd270dc9b341312cbd0a993d.tar.gz
forums-96a68bcccb476dd1dd270dc9b341312cbd0a993d.tar.bz2
forums-96a68bcccb476dd1dd270dc9b341312cbd0a993d.tar.xz
forums-96a68bcccb476dd1dd270dc9b341312cbd0a993d.zip
Merge pull request #5414 from senky/ticket/15837
[ticket/15837] Add core.ucp_register_welcome_email_before
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/ucp/ucp_register.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 3c5f4e2826..bba721901a 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -481,6 +481,32 @@ class ucp_register
);
}
+ /**
+ * Modify messenger data before welcome mail is sent
+ *
+ * @event core.ucp_register_welcome_email_before
+ * @var array user_row Array with user registration data
+ * @var array cp_data Array with custom profile fields data
+ * @var array data Array with current ucp registration data
+ * @var string message Message to be displayed to the user after registration
+ * @var string server_url Server URL
+ * @var int user_id New user ID
+ * @var string user_actkey User activation key
+ * @var messenger messenger phpBB Messenger
+ * @since 3.2.4-RC1
+ */
+ $vars = array(
+ 'user_row',
+ 'cp_data',
+ 'data',
+ 'message',
+ 'server_url',
+ 'user_id',
+ 'user_actkey',
+ 'messenger',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.ucp_register_welcome_email_before', compact($vars)));
+
$messenger->send(NOTIFY_EMAIL);
}