From ac3a997004bd1f1e6d149020fff9499b0716ae01 Mon Sep 17 00:00:00 2001 From: Ferhan ISMAILOV Date: Wed, 25 Sep 2019 14:56:27 +0300 Subject: [PATCH] Add check before sync for user status when new profile created --- mailjet.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mailjet.module b/mailjet.module index 8b401c7..1badb9c 100644 --- a/mailjet.module +++ b/mailjet.module @@ -432,7 +432,9 @@ function processCustomFields($user) * The User object. */ function mailjet_user_insert(User $user) { - mailjet_sync_single_user($user, 'add'); + if ($user->get('status')->value > 0) { + mailjet_sync_single_user($user, 'add'); + } }