diff options
author | alecpl <alec@alec.pl> | 2010-07-30 06:34:02 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-07-30 06:34:02 +0000 |
commit | e6ce0062f2331b8756cc91944ceaea8d7cbffd18 (patch) | |
tree | 1005f3248c2dc0eb12a7587c19c2bf5181ac7fc8 /program/steps/addressbook/save.inc | |
parent | ee09d464a86a75958e1b61f230e0f0294e929a7e (diff) |
- Unify hooks names, see rcube_plugin_api::deprecated_hooks for complete list (old names are supported without errors nor warnings)
Diffstat (limited to 'program/steps/addressbook/save.inc')
-rw-r--r-- | program/steps/addressbook/save.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index a277008c8..800bf4632 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -54,7 +54,7 @@ foreach ($a_save_cols as $col) // update an existing contact if (!empty($cid)) { - $plugin = $RCMAIL->plugins->exec_hook('save_contact', array('id' => $cid, 'record' => $a_record, 'source' => get_input_value('_source', RCUBE_INPUT_GPC))); + $plugin = $RCMAIL->plugins->exec_hook('contact_save', 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))) @@ -102,7 +102,7 @@ else return; } - $plugin = $RCMAIL->plugins->exec_hook('create_contact', array('record' => $a_record, 'source' => get_input_value('_source', RCUBE_INPUT_GPC))); + $plugin = $RCMAIL->plugins->exec_hook('contact_create', array('record' => $a_record, 'source' => get_input_value('_source', RCUBE_INPUT_GPC))); $a_record = $plugin['record']; // insert record and send response |