From d8ffedbd5ecddb3a12a510406b02764114f2d0e5 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <bruederli@kolabsys.com>
Date: Fri, 22 May 2015 03:21:00 -0400
Subject: [PATCH] Add new plugin hook 'identity_create_after' (#1490358)
---
CHANGELOG | 1 +
program/steps/settings/save_identity.inc | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index 0c2815a..db142ed 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
+- Add new plugin hook 'identity_create_after' providing the ID of the inserted identity (#1490358)
- Add option to place signature at bottom of the quoted text even in top-posting mode [sig_below]
- Fix handling of %-encoded entities in mailto: URLs (#1490346)
- Fix zipped messages downloads after selecting all messages in a folder (#1490339)
diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc
index ac7ef87..72c2597 100644
--- a/program/steps/settings/save_identity.inc
+++ b/program/steps/settings/save_identity.inc
@@ -159,6 +159,8 @@
$insert_id = $plugin['result'];
if ($insert_id) {
+ $RCMAIL->plugins->exec_hook('identity_create_after', array('id' => $insert_id, 'record' => $save_data));
+
$OUTPUT->show_message('successfullysaved', 'confirmation', null, false);
$_GET['_iid'] = $insert_id;
--
Gitblit v1.9.1