diff options
author | thomascube <thomas@roundcube.net> | 2009-05-14 19:26:34 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-05-14 19:26:34 +0000 |
commit | f879f4e2f8c81f67b0a0c471c94ebed686939c49 (patch) | |
tree | 579b1b9c06dfbe8ee23b66831db46dc6ff2fb145 /program/steps/settings | |
parent | e54f6c7a9efa28633616064bea68a3d2b4468272 (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.inc | 2 |
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))) |