mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
Merge remote-tracking branch 'origin/ticket/14927' into 3.1.x
This commit is contained in:
@@ -275,10 +275,12 @@ 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 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 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 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
|
* @since 3.1.0-a1
|
||||||
* @changed 3.1.0-b5 Added user_row and cp_data
|
* @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');
|
$vars = array('user_row', 'cp_data', 'sql_ary', 'notifications_data');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.user_add_modify_data', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.user_add_modify_data', compact($vars)));
|
||||||
|
|
||||||
$sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
|
$sql = 'INSERT INTO ' . USERS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
|
||||||
|
Reference in New Issue
Block a user