diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-02-24 21:53:05 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-02-24 21:53:05 +0100 |
commit | 06d6bcbe00736f02e05402d91aeeebc9bebc0e6a (patch) | |
tree | 22c2991accd4ba1dc759206fb1d1c47ade51aaa6 /phpBB/includes/ucp/ucp_profile.php | |
parent | 17b00812a753d2e6790d003882ab3579d510e3f2 (diff) | |
parent | 9f9e392c7d358576fd15c2aaca034fd520140512 (diff) | |
download | forums-06d6bcbe00736f02e05402d91aeeebc9bebc0e6a.tar forums-06d6bcbe00736f02e05402d91aeeebc9bebc0e6a.tar.gz forums-06d6bcbe00736f02e05402d91aeeebc9bebc0e6a.tar.bz2 forums-06d6bcbe00736f02e05402d91aeeebc9bebc0e6a.tar.xz forums-06d6bcbe00736f02e05402d91aeeebc9bebc0e6a.zip |
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index c69dd7ef78..cc1e58edac 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -114,6 +114,18 @@ class ucp_profile $error[] = 'FORM_INVALID'; } + /** + * Validate user data on editing profile in UCP + * + * @event core.ucp_profile_info_validate_data + * @var array data Array with user profile data + * @var bool submit Flag indicating if submit button has been pressed + * @var array error Array of any generated errors + * @since 3.1.4-RC1 + */ + $vars = array('data', 'submit', 'error'); + extract($phpbb_dispatcher->trigger_event('core.ucp_profile_info_validate_data', compact($vars))); + if (!sizeof($error)) { $sql_ary = array( @@ -393,7 +405,7 @@ class ucp_profile * @event core.ucp_profile_info_modify_sql_ary * @var array cp_data Array with the user custom profile fields data * @var array data Array with user profile data - * @var array sql_ary user options data we update + * @var array sql_ary user options data we update * @since 3.1.4-RC1 */ $vars = array('cp_data', 'data', 'sql_ary'); |