From 8c920e81df085287c8dd321e571ae6dad6df6f70 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 5 May 2015 19:10:25 +0200 Subject: [PATCH] grrrrr --- sites/all/modules/gui/materiobasemod/materio_user.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sites/all/modules/gui/materiobasemod/materio_user.module b/sites/all/modules/gui/materiobasemod/materio_user.module index d70333f0..a6203741 100755 --- a/sites/all/modules/gui/materiobasemod/materio_user.module +++ b/sites/all/modules/gui/materiobasemod/materio_user.module @@ -661,7 +661,8 @@ function materio_user_get_role_by_name($name) { function materio_user_mandrill_mailsend_result($result) { if ( in_array($result['status'], array('rejected', 'invalid', 'error')) ) { // remove email from pool - // simplenews_delete_spool(['mail'=>$result['email']]); + module_load_include('inc', 'simplenews', 'includes/simplenews.mail'); + simplenews_delete_spool(['mail'=>$result['email']]); if ( in_array($result['status'], array('invalid')) ) { // unsubscribe user if mail does not exists