grrrrr
This commit is contained in:
parent
8589ce7c28
commit
202993e68e
@ -663,16 +663,16 @@ function materio_user_mandrill_mailsend_result($result) {
|
||||
// remove email from pool
|
||||
// simplenews_delete_spool(['mail'=>$result['email']]);
|
||||
|
||||
// if ( in_array($result['status'], array('invalid')) ) {
|
||||
// // unsubscribe user if mail does not exists
|
||||
if ( in_array($result['status'], array('invalid')) ) {
|
||||
// unsubscribe user if mail does not exists
|
||||
// $subscriber = simplenews_subscriber_load_by_mail($result['email']);
|
||||
// if ($subscriber) {
|
||||
// simplenews_subscriber_delete($subscriber);
|
||||
// }
|
||||
// // disable user
|
||||
// $user = user_load_by_mail($result['email']);
|
||||
// $user->status = 0;
|
||||
// user_save($user->uid);
|
||||
// }
|
||||
// disable user
|
||||
$user = user_load_by_mail($result['email']);
|
||||
$user->status = 0;
|
||||
user_save($user->uid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user