diff options
author | RMcGirr83 <rmcgirr83@gmail.com> | 2015-02-25 11:28:00 -0500 |
---|---|---|
committer | RMcGirr83 <rmcgirr83@gmail.com> | 2015-02-25 11:28:00 -0500 |
commit | 044295742029fcd38a4fcfe99606e8ab6c0bf960 (patch) | |
tree | bbdf463698ff3df5168c1f77a230bd326742ca99 /phpBB/includes/ucp/ucp_profile.php | |
parent | 03ded5853be305e232e05cc8e9f94648d3eb6007 (diff) | |
download | forums-044295742029fcd38a4fcfe99606e8ab6c0bf960.tar forums-044295742029fcd38a4fcfe99606e8ab6c0bf960.tar.gz forums-044295742029fcd38a4fcfe99606e8ab6c0bf960.tar.bz2 forums-044295742029fcd38a4fcfe99606e8ab6c0bf960.tar.xz forums-044295742029fcd38a4fcfe99606e8ab6c0bf960.zip |
[ticket/13650] Move core event
PHPBB3-13650
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_profile.php | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 2c786a1d39..8d8d42e742 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -115,16 +115,16 @@ class ucp_profile } /** - * Validate user data on editing profile in UCP + * Validate user data on editing registration data in UCP * - * @event core.ucp_profile_info_validate_data + * @event core.ucp_profile_reg_details_validate * @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))); + extract($phpbb_dispatcher->trigger_event('core.ucp_profile_reg_details_validate', compact($vars))); if (!sizeof($error)) { @@ -365,6 +365,18 @@ class ucp_profile $error[] = 'FORM_INVALID'; } + /** + * Validate user data on editing profile in UCP + * + * @event core.ucp_profile_validate_profile_info + * @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_validate_profile_info', compact($vars))); + if (!sizeof($error)) { $data['notify'] = $user->data['user_notify_type']; |