diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2015-03-06 14:36:22 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2015-03-06 14:36:22 +0100 |
| commit | 5e7560845b7ace6f5360305d7e6068feb04c08d3 (patch) | |
| tree | c86765d599d5f0ab4a91a8182abbfe6edfee207e /phpBB/includes/acp/acp_users.php | |
| parent | bd22b8319bf73c3cd1e51bab3e56b6c7c7954f40 (diff) | |
| parent | d7f4715b96f2d43f7469e54b7c27bc3415a84a24 (diff) | |
| download | forums-5e7560845b7ace6f5360305d7e6068feb04c08d3.tar forums-5e7560845b7ace6f5360305d7e6068feb04c08d3.tar.gz forums-5e7560845b7ace6f5360305d7e6068feb04c08d3.tar.bz2 forums-5e7560845b7ace6f5360305d7e6068feb04c08d3.tar.xz forums-5e7560845b7ace6f5360305d7e6068feb04c08d3.zip | |
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/includes/acp/acp_users.php')
| -rw-r--r-- | phpBB/includes/acp/acp_users.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index 976589bac1..fec32146c1 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -1451,6 +1451,18 @@ class acp_users $error[] = 'FORM_INVALID'; } + /** + * Validate profile data in ACP before submitting to the database + * + * @event core.acp_users_profile_validate + * @var bool submit Flag indicating if submit button has been pressed + * @var array data Array with user profile data + * @var array error Array with the form errors + * @since 3.1.4-RC1 + */ + $vars = array('submit', 'data', 'error'); + extract($phpbb_dispatcher->trigger_event('core.acp_users_profile_validate', compact($vars))); + if (!sizeof($error)) { $sql_ary = array( @@ -1466,9 +1478,10 @@ class acp_users * @var array data Array with user profile data * @var int user_id The user id * @var array user_row Array with the full user data + * @var array sql_ary Array with sql data * @since 3.1.4-RC1 */ - $vars = array('cp_data', 'data', 'user_id', 'user_row'); + $vars = array('cp_data', 'data', 'user_id', 'user_row', 'sql_ary'); extract($phpbb_dispatcher->trigger_event('core.acp_users_profile_modify_sql_ary', compact($vars))); $sql = 'UPDATE ' . USERS_TABLE . ' |
