diff options
author | Zoddo <zoddo.ino@gmail.com> | 2015-07-12 18:13:55 +0200 |
---|---|---|
committer | Zoddo <zoddo.ino@gmail.com> | 2015-07-12 19:25:05 +0200 |
commit | e69d23dc887d4ff1933c89763ffe424fb5c3b7ee (patch) | |
tree | 0355acb15cf29540d2c26d2141240be6c736a265 /phpBB/includes/ucp | |
parent | 7d7b536874aa7eae7a6c5451d1ed8ee1dc62a1df (diff) | |
download | forums-e69d23dc887d4ff1933c89763ffe424fb5c3b7ee.tar forums-e69d23dc887d4ff1933c89763ffe424fb5c3b7ee.tar.gz forums-e69d23dc887d4ff1933c89763ffe424fb5c3b7ee.tar.bz2 forums-e69d23dc887d4ff1933c89763ffe424fb5c3b7ee.tar.xz forums-e69d23dc887d4ff1933c89763ffe424fb5c3b7ee.zip |
[ticket/14006] Add core.ucp_register_agreement event
It allows to execute code before the agreements are displayed.
PHPBB3-14006
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r-- | phpBB/includes/ucp/ucp_register.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php index 0ee45b0706..3426af95d0 100644 --- a/phpBB/includes/ucp/ucp_register.php +++ b/phpBB/includes/ucp/ucp_register.php @@ -176,6 +176,16 @@ class ucp_register } unset($lang_row); + /** + * Allows to modify the agreements. + * + * To assign data to the template, use $template->assign_vars() + * + * @event core.ucp_register_agreement + * @since 3.1.6-RC1 + */ + $phpbb_dispatcher->dispatch('core.ucp_register_agreement'); + $this->tpl_name = 'ucp_agreement'; return; } |