From 1ed52942c6cc8dadd396f80405ce744d095a2947 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 9 Aug 2010 06:35:10 +0000 Subject: - Rename hooks: contact_save -> contact_update, identity_save -> identity_update, delete_identity -> identity_delete - Print warning to the log about deprecated hook names usage git-svn-id: https://svn.roundcube.net/trunk@3883 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/addressbook/save.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/steps/addressbook') diff --git a/roundcubemail/program/steps/addressbook/save.inc b/roundcubemail/program/steps/addressbook/save.inc index 800bf4632..dbc780812 100644 --- a/roundcubemail/program/steps/addressbook/save.inc +++ b/roundcubemail/program/steps/addressbook/save.inc @@ -54,7 +54,8 @@ foreach ($a_save_cols as $col) // update an existing contact if (!empty($cid)) { - $plugin = $RCMAIL->plugins->exec_hook('contact_save', array('id' => $cid, 'record' => $a_record, 'source' => get_input_value('_source', RCUBE_INPUT_GPC))); + $plugin = $RCMAIL->plugins->exec_hook('contact_update', + array('id' => $cid, 'record' => $a_record, 'source' => get_input_value('_source', RCUBE_INPUT_GPC))); $a_record = $plugin['record']; if (!$plugin['abort'] && ($result = $CONTACTS->update($cid, $a_record))) -- cgit v1.2.3