From 119ad13d74388ed62144724ac22e7cc24588eb6b Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 09 Aug 2010 02:35:10 -0400 Subject: [PATCH] - Rename hooks: contact_save -> contact_update, identity_save -> identity_update, delete_identity -> identity_delete - Print warning to the log about deprecated hook names usage --- program/steps/addressbook/save.inc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index 800bf46..dbc7808 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -54,7 +54,8 @@ // 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))) -- Gitblit v1.9.1