aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/user.php
diff options
context:
space:
mode:
authorZoddo <zoddo.ino@gmail.com>2015-07-15 16:23:10 +0200
committerZoddo <zoddo.ino@gmail.com>2015-08-12 22:26:06 +0200
commit9d4228291c392ac4886c81cf98d0de03d405c405 (patch)
tree9ff631c566f9dd33990175ff4089c2bd898f1dd9 /phpBB/phpbb/user.php
parentdead984f5456c3de5e5837680a61272289ce4a15 (diff)
downloadforums-9d4228291c392ac4886c81cf98d0de03d405c405.tar
forums-9d4228291c392ac4886c81cf98d0de03d405c405.tar.gz
forums-9d4228291c392ac4886c81cf98d0de03d405c405.tar.bz2
forums-9d4228291c392ac4886c81cf98d0de03d405c405.tar.xz
forums-9d4228291c392ac4886c81cf98d0de03d405c405.zip
[ticket/13968] Add core.user_setup_after event
It allows to execute code at the end of user setup. It can replace the phpbb_user_session_handler hook. PHPBB3-13968
Diffstat (limited to 'phpBB/phpbb/user.php')
-rw-r--r--phpBB/phpbb/user.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php
index 3bc1af2899..f5ad5096bb 100644
--- a/phpBB/phpbb/user.php
+++ b/phpBB/phpbb/user.php
@@ -301,6 +301,14 @@ class user extends \phpbb\session
// After calling it we continue script execution...
phpbb_user_session_handler();
+ /**
+ * Execute code at the end of user setup
+ *
+ * @event core.user_setup_after
+ * @since 3.1.6-RC1
+ */
+ $phpbb_dispatcher->dispatch('core.user_setup_after');
+
// If this function got called from the error handler we are finished here.
if (defined('IN_ERROR_HANDLER'))
{