aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_profile.php
diff options
context:
space:
mode:
authorRichard McGirr <rmcgirr83@gmail.com>2015-02-23 21:19:10 -0500
committerRichard McGirr <rmcgirr83@gmail.com>2015-02-23 21:19:10 -0500
commit03ded5853be305e232e05cc8e9f94648d3eb6007 (patch)
treee908e66543589647d04cca17aee6df22b972b8eb /phpBB/includes/ucp/ucp_profile.php
parent525a62f72e872f8d19e2ec3f2e1c105e9fae4f75 (diff)
downloadforums-03ded5853be305e232e05cc8e9f94648d3eb6007.tar
forums-03ded5853be305e232e05cc8e9f94648d3eb6007.tar.gz
forums-03ded5853be305e232e05cc8e9f94648d3eb6007.tar.bz2
forums-03ded5853be305e232e05cc8e9f94648d3eb6007.tar.xz
forums-03ded5853be305e232e05cc8e9f94648d3eb6007.zip
[ticket/13650] Validate ucp profile data changes
PHPBB3-13650
Diffstat (limited to 'phpBB/includes/ucp/ucp_profile.php')
-rw-r--r--phpBB/includes/ucp/ucp_profile.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index f05e8a50cf..2c786a1d39 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(
@@ -380,7 +392,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');