diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-10-28 13:40:30 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-10-28 13:40:30 +0100 |
commit | 96a68bcccb476dd1dd270dc9b341312cbd0a993d (patch) | |
tree | 39b319d9b25615c7c687a3e8161ae2d3cc077ddd /phpBB/includes | |
parent | 25d42b0f10506d0a5ab182201726e702d1fc16bd (diff) | |
parent | 9c636cfdbece8c0f9095dcb3012adaa6aefc92f2 (diff) | |
download | forums-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.php | 26 |
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); } |