aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
authorRMcGirr83 <rmcgirr83@gmail.com>2015-02-25 11:28:00 -0500
committerRMcGirr83 <rmcgirr83@gmail.com>2015-02-25 11:28:00 -0500
commit044295742029fcd38a4fcfe99606e8ab6c0bf960 (patch)
treebbdf463698ff3df5168c1f77a230bd326742ca99 /phpBB/includes/ucp/ucp_profile.php
parent03ded5853be305e232e05cc8e9f94648d3eb6007 (diff)
downloadforums-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.php18
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'];