summaryrefslogtreecommitdiff
path: root/program/steps/settings
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-05-14 19:26:34 +0000
committerthomascube <thomas@roundcube.net>2009-05-14 19:26:34 +0000
commitf879f4e2f8c81f67b0a0c471c94ebed686939c49 (patch)
tree579b1b9c06dfbe8ee23b66831db46dc6ff2fb145 /program/steps/settings
parente54f6c7a9efa28633616064bea68a3d2b4468272 (diff)
Trigger 'create_identity' when creating a new user; Allow 'create_user' hook to abort the operation
Diffstat (limited to 'program/steps/settings')
-rw-r--r--program/steps/settings/save_identity.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc
index 754e86c55..900c2d3d9 100644
--- a/program/steps/settings/save_identity.inc
+++ b/program/steps/settings/save_identity.inc
@@ -92,7 +92,7 @@ else if (IDENTITIES_LEVEL < 2)
if (IDENTITIES_LEVEL == 1)
$save_data['email'] = $RCMAIL->user->get_username();
- $plugin = $RCMAIL->plugins->exec_hook('create_identity', array('id' => $iid, 'record' => $save_data));
+ $plugin = $RCMAIL->plugins->exec_hook('create_identity', array('record' => $save_data));
$save_data = $plugin['record'];
if (!$plugin['abort'] && $save_data['email'] && ($insert_id = $USER->insert_identity($save_data)))