diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2015-08-22 10:40:33 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2015-08-22 10:40:33 +0200 |
| commit | f585f48aca3053862e81d0ff63956940c53878e7 (patch) | |
| tree | 8187e2e3b1dd7271e02bf839d91a16c06cf53709 /phpBB | |
| parent | d8dd6bad6b7f7e04fbda6bb96ff97e81212709ec (diff) | |
| parent | 1b1fc6ed248934b332ff89f2492dee362f9cb47e (diff) | |
| download | forums-f585f48aca3053862e81d0ff63956940c53878e7.tar forums-f585f48aca3053862e81d0ff63956940c53878e7.tar.gz forums-f585f48aca3053862e81d0ff63956940c53878e7.tar.bz2 forums-f585f48aca3053862e81d0ff63956940c53878e7.tar.xz forums-f585f48aca3053862e81d0ff63956940c53878e7.zip | |
Merge pull request #3823 from lavigor/ticket/14087
[ticket/14087] Add an event to ucp_activate.php.
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/includes/ucp/ucp_activate.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_activate.php b/phpBB/includes/ucp/ucp_activate.php index 6e357b260a..1f5ce93277 100644 --- a/phpBB/includes/ucp/ucp_activate.php +++ b/phpBB/includes/ucp/ucp_activate.php @@ -30,7 +30,7 @@ class ucp_activate function main($id, $mode) { global $config, $phpbb_root_path, $phpEx; - global $db, $user, $auth, $template, $phpbb_container; + global $db, $user, $auth, $template, $phpbb_container, $phpbb_dispatcher; $user_id = request_var('u', 0); $key = request_var('k', ''); @@ -143,6 +143,17 @@ class ucp_activate } } + /** + * This event can be used to modify data after user account's activation + * + * @event core.ucp_activate_after + * @var array user_row Array with some user data + * @var string message Language string of the message that will be displayed to the user + * @since 3.1.6-RC1 + */ + $vars = array('user_row', 'message'); + extract($phpbb_dispatcher->trigger_event('core.ucp_activate_after', compact($vars))); + meta_refresh(3, append_sid("{$phpbb_root_path}index.$phpEx")); trigger_error($user->lang[$message]); } |
