diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-02-02 23:18:15 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-02-02 23:18:15 +0100 |
commit | e9eafece3fa3930202d6a218f25e5cbe508c6c27 (patch) | |
tree | 08c11630357a6d8d353918b26f4075fa29e562ef /phpBB/includes | |
parent | 0e6cd94fb4b4ddab7d76d790b3cee459ecf844a3 (diff) | |
parent | e08cd70a89b5efcd303a14b13d827d063528937f (diff) | |
download | forums-e9eafece3fa3930202d6a218f25e5cbe508c6c27.tar forums-e9eafece3fa3930202d6a218f25e5cbe508c6c27.tar.gz forums-e9eafece3fa3930202d6a218f25e5cbe508c6c27.tar.bz2 forums-e9eafece3fa3930202d6a218f25e5cbe508c6c27.tar.xz forums-e9eafece3fa3930202d6a218f25e5cbe508c6c27.zip |
Merge pull request #3323 from rxu/ticket/13535
[ticket/13535] Add core event to allow modifying account settings on editing
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index a876d0133a..436023a4a2 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -54,6 +54,17 @@ class ucp_profile 'password_confirm' => $request->variable('password_confirm', '', true), ); + /** + * Modify user registration data on editing account settings in UCP + * + * @event core.ucp_profile_reg_details_data + * @var array data Array with current or updated user registration data + * @var bool submit Flag indicating if submit button has been pressed + * @since 3.1.4-RC1 + */ + $vars = array('data', 'submit'); + extract($phpbb_dispatcher->trigger_event('core.ucp_profile_reg_details_data', compact($vars))); + add_form_key('ucp_reg_details'); if ($submit) @@ -200,6 +211,17 @@ class ucp_profile $sql_ary['user_newpasswd'] = ''; } + /** + * Modify user registration data before submitting it to the database + * + * @event core.ucp_profile_reg_details_sql_ary + * @var array data Array with current or updated user registration data + * @var array sql_ary Array with user registration data to submit to the database + * @since 3.1.4-RC1 + */ + $vars = array('data', 'sql_ary'); + extract($phpbb_dispatcher->trigger_event('core.ucp_profile_reg_details_sql_ary', compact($vars))); + if (sizeof($sql_ary)) { $sql = 'UPDATE ' . USERS_TABLE . ' |