diff options
Diffstat (limited to 'program/steps/settings/delete_identity.inc')
-rw-r--r-- | program/steps/settings/delete_identity.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/program/steps/settings/delete_identity.inc b/program/steps/settings/delete_identity.inc index a72a8a7d8..97c16d578 100644 --- a/program/steps/settings/delete_identity.inc +++ b/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) |