summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/settings/delete_identity.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-01 19:04:26 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-05-01 19:04:26 +0000
commit153e5184d4ae40f06c453c22f923d1a294fc4bfa (patch)
tree3fc6a8e076449b4df51b2515f78c6724a7339a07 /roundcubemail/program/steps/settings/delete_identity.inc
parentd065289028e049e8f615c9112dd4c29d4a51a1d8 (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/settings/delete_identity.inc')
-rw-r--r--roundcubemail/program/steps/settings/delete_identity.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/settings/delete_identity.inc b/roundcubemail/program/steps/settings/delete_identity.inc
index a72a8a7d8..97c16d578 100644
--- a/roundcubemail/program/steps/settings/delete_identity.inc
+++ b/roundcubemail/program/steps/settings/delete_identity.inc
@@ -21,11 +21,13 @@
if (($ids = get_input_value('_iid', RCUBE_INPUT_GET)) && preg_match('/^[0-9]+(,[0-9]+)*$/', $ids))
{
- if ($USER->delete_identity($ids)) {
- $OUTPUT->show_message('deletedsuccessfully', 'confirmation');
+ $plugin = $RCMAIL->plugins->exec_hook('delete_identity', array('id' => $ids));
+
+ if (!$plugin['abort'] && $USER->delete_identity($ids)) {
+ $OUTPUT->show_message('deletedsuccessfully', 'confirmation', null, false);
}
else {
- $OUTPUT->show_message('nodeletelastidentity', 'error');
+ $OUTPUT->show_message('nodeletelastidentity', 'error', null, false);
}
// send response
if ($OUTPUT->ajax_call)