From 5e9729437232a90f7a1ae8e7e29ab185ec8d4de9 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 22 May 2015 09:21:00 +0200 Subject: [PATCH] Add new plugin hook 'identity_create_after' (#1490358) --- CHANGELOG | 1 + program/steps/settings/save_identity.inc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 2fd30801a..1184efbb2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -9,6 +9,7 @@ CHANGELOG Roundcube Webmail - 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 ac7ef8708..72c259710 100644 --- a/program/steps/settings/save_identity.inc +++ b/program/steps/settings/save_identity.inc @@ -159,6 +159,8 @@ else if (IDENTITIES_LEVEL < 2) { $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;