From f879f4e2f8c81f67b0a0c471c94ebed686939c49 Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 14 May 2009 19:26:34 +0000 Subject: Trigger 'create_identity' when creating a new user; Allow 'create_user' hook to abort the operation --- program/steps/settings/save_identity.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps/settings') 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))) -- cgit v1.2.3