diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-01 19:04:26 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-01 19:04:26 +0000 |
| commit | 153e5184d4ae40f06c453c22f923d1a294fc4bfa (patch) | |
| tree | 3fc6a8e076449b4df51b2515f78c6724a7339a07 /roundcubemail/program/steps/addressbook/delete.inc | |
| parent | d065289028e049e8f615c9112dd4c29d4a51a1d8 (diff) | |
Add plugin hooks for creating/saving/deleting identities and contacts
git-svn-id: https://svn.roundcube.net/trunk@2441 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/delete.inc')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/delete.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/addressbook/delete.inc b/roundcubemail/program/steps/addressbook/delete.inc index df1e4073e..6ab9cc3df 100644 --- a/roundcubemail/program/steps/addressbook/delete.inc +++ b/roundcubemail/program/steps/addressbook/delete.inc @@ -24,7 +24,9 @@ if (($cid = get_input_value('_cid', RCUBE_INPUT_POST)) && preg_match('/^[a-zA-Z0-9=]+(,[a-zA-Z0-9=]+)*$/', $cid)) ) { - $deleted = $CONTACTS->delete($cid); + $plugin = $RCMAIL->plugins->exec_hook('delete_contact', array('id' => $cid, 'source' => get_input_value('_source', RCUBE_INPUT_GPC))); + + $deleted = !$plugin['abort'] ? $CONTACTS->delete($cid) : false; if (!$deleted) { // send error message |
