aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-10-28 16:28:28 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-10-28 16:28:28 +0100
commit60414dec8697ac8d2e2b14f2166016a676c3c25a (patch)
treea12d4e6a7b66031cb7fafd53b665ceee585a8a47 /phpBB/includes
parent2121b1274a78611ecb9bface14509957f0d67a32 (diff)
parentf430a777313a8193b87c46d8eecdceb26787b918 (diff)
downloadforums-60414dec8697ac8d2e2b14f2166016a676c3c25a.tar
forums-60414dec8697ac8d2e2b14f2166016a676c3c25a.tar.gz
forums-60414dec8697ac8d2e2b14f2166016a676c3c25a.tar.bz2
forums-60414dec8697ac8d2e2b14f2166016a676c3c25a.tar.xz
forums-60414dec8697ac8d2e2b14f2166016a676c3c25a.zip
Merge pull request #5415 from senky/ticket/15838
[ticket/15838] Add core.ucp_register_register_after
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/ucp/ucp_register.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index bba721901a..0e673cb692 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -534,6 +534,30 @@ class ucp_register
}
}
+ /**
+ * Perform additional actions after user registration
+ *
+ * @event core.ucp_register_register_after
+ * @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
+ * @since 3.2.4-RC1
+ */
+ $vars = array(
+ 'user_row',
+ 'cp_data',
+ 'data',
+ 'message',
+ 'server_url',
+ 'user_id',
+ 'user_actkey',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.ucp_register_register_after', compact($vars)));
+
$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
trigger_error($message);
}