From 5e9729437232a90f7a1ae8e7e29ab185ec8d4de9 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <bruederli@kolabsys.com>
Date: Fri, 22 May 2015 03:22:05 -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 2fd3080..1184efb 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,6 +9,7 @@
- Plugin API: Added message_ready hook
- Plugin API: Add special onload() method to execute plugin actions before startup (session and GUI initialization)
- Implemented UI element to jump to specified page of the messages list (#1485235)
+- 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