aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rwxr-xr-x[-rw-r--r--]phpBB/includes/functions_user.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 5a10f9f411..0990eacc1c 100644..100755
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -180,6 +180,17 @@ 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,
@@ -344,6 +355,18 @@ function user_add($user_row, $cp_data = false)
set_config('newest_user_colour', $row['group_colour'], true);
}
+ /**
+ * Event that returns user id, user detals and user CPF of newly registared user
+ *
+ * @event core.user_add_after
+ * @var int user_id User id of newly registared user
+ * @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_id', 'user_row', 'cp_data');
+ extract($phpbb_dispatcher->trigger_event('core.user_add_after', compact($vars)));
+
return $user_id;
}