From 1b46435734492f6d28456cf95ddb355d710c0f22 Mon Sep 17 00:00:00 2001 From: david63 Date: Mon, 19 Dec 2016 11:23:58 +0000 Subject: [PATCH 1/3] [ticket/14927] Add items to core.user_add_modify_data PHPBB3-14927 --- phpBB/includes/functions_user.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 2a421f532f..175998d51f 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -272,13 +272,19 @@ function user_add($user_row, $cp_data = false, $notifications_data = null) * 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 + * @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 * @changed 3.1.0-b5 Added user_row and cp_data + * @var array notifications_data Array of notification data to be inserted when a user is added + * @change 3.2.0 */ - $vars = array('user_row', 'cp_data', 'sql_ary'); + $vars = array( + 'user_row', + 'cp_data', + 'sql_ary', + 'notifications_data'); extract($phpbb_dispatcher->trigger_event('core.user_add_modify_data', compact($vars))); $sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary); From bac6dbda5e457ba5d1347b342616433be75b590d Mon Sep 17 00:00:00 2001 From: david63 Date: Wed, 21 Dec 2016 14:04:32 +0000 Subject: [PATCH 2/3] [ticket/14927] Corrected order in docblock of event & target version PHPBB3-14927 --- phpBB/includes/functions_user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 175998d51f..f222f33eb2 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -275,10 +275,10 @@ function user_add($user_row, $cp_data = false, $notifications_data = null) * @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 + * @var array notifications_data Array of notification data to be inserted when a user is added * @since 3.1.0-a1 * @changed 3.1.0-b5 Added user_row and cp_data - * @var array notifications_data Array of notification data to be inserted when a user is added - * @change 3.2.0 + * @changed 3.1.11-RC1 Added notifications_data */ $vars = array( 'user_row', From bc86210db82e4336a82389cb26e652a2ce63f7c7 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 21 Feb 2017 22:15:12 +0100 Subject: [PATCH 3/3] [ticket/14927] Put vars on one line PHPBB3-14927 --- phpBB/includes/functions_user.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index f222f33eb2..4aecbff6ba 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -280,11 +280,7 @@ function user_add($user_row, $cp_data = false, $notifications_data = null) * @changed 3.1.0-b5 Added user_row and cp_data * @changed 3.1.11-RC1 Added notifications_data */ - $vars = array( - 'user_row', - 'cp_data', - 'sql_ary', - 'notifications_data'); + $vars = array('user_row', 'cp_data', 'sql_ary', 'notifications_data'); extract($phpbb_dispatcher->trigger_event('core.user_add_modify_data', compact($vars))); $sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);