aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xphpBB/includes/functions_user.php17
1 files changed, 4 insertions, 13 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 0990eacc1c..b1e1742ef8 100755
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -180,17 +180,6 @@ function user_add($user_row, $cp_data = false)
return false;
}
- /**
- * Event to parse/modify data submited to user_add function
- *
- * @event core.user_add_before
- * @var array user_row Array of user details submited to user_add
- * @var array cp_data Array of Custom profile fields submited to user_add
- * @since 3.1.0-b5
- */
- $vars = array('user_row', 'cp_data');
- extract($phpbb_dispatcher->trigger_event('core.user_add_before', compact($vars)));
-
$sql_ary = array(
'username' => $user_row['username'],
'username_clean' => $username_clean,
@@ -272,10 +261,12 @@ function user_add($user_row, $cp_data = false)
* Use this event to modify the values to be inserted when a user is added
*
* @event core.user_add_modify_data
+ * @var array user_row Array of user details submited to user_add
+ * @var array cp_data Array of Custom profile fields submited to user_add
* @var array sql_ary Array of data to be inserted when a user is added
- * @since 3.1.0-a1
+ * @since 3.1.0-b5
*/
- $vars = array('sql_ary');
+ $vars = array('user_row', 'cp_data', 'sql_ary');
extract($phpbb_dispatcher->trigger_event('core.user_add_modify_data', compact($vars)));
$sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);