diff options
author | David King <imkingdavid@gmail.com> | 2012-08-21 17:04:16 -0400 |
---|---|---|
committer | David King <imkingdavid@gmail.com> | 2012-08-21 17:04:16 -0400 |
commit | 4f6f0c08979d420a47f5cc4bcab2709d27853222 (patch) | |
tree | dbc2f1488fc12ca296f40ec93dadf59b63b4cfd7 /phpBB/includes/functions_user.php | |
parent | 0358db2184885dfec6c9b73573ee457cfccdd644 (diff) | |
download | forums-4f6f0c08979d420a47f5cc4bcab2709d27853222.tar forums-4f6f0c08979d420a47f5cc4bcab2709d27853222.tar.gz forums-4f6f0c08979d420a47f5cc4bcab2709d27853222.tar.bz2 forums-4f6f0c08979d420a47f5cc4bcab2709d27853222.tar.xz forums-4f6f0c08979d420a47f5cc4bcab2709d27853222.zip |
[feature/add_events] Event to modify the data array for when a user is added
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 9e33a5122e..f4ecb7cdc3 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -255,6 +255,16 @@ 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 sql_ary Array of data to be inserted when a user is added + * @since 3.1-A1 + */ + $vars = array('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); $db->sql_query($sql); |