Good Day

when i delete users (bots, spamers) from table users (in phpmyadmin) - does not remove their record from the table simplenews_subscriptions

How delete their record ? How real "synchronize" ?

Thanks

Comments

sutharsan’s picture

Category: bug » support
Status: Active » Fixed

There is a checkbox at Home › Administer › Site configuration › Simplenews › Subscriptions that will help you.

Valeratal’s picture

This checkbox do not work, beacause i deleted users by not admin panel

In this topic
http://drupal.org/node/297041

code for 5

<?php
if (variable_get('simplenews_sync_account', FALSE)) {
        // Delete subscription and all newsletter subscriptions when account is removed
        $subscription = simplenews_get_user_subscription($account->mail);
        db_query('DELETE FROM {simplenews_snid_tid} WHERE snid = %d', $subscription->snid);
        db_query('DELETE FROM {simplenews_subscriptions} WHERE snid = %d', $subscription->snid);       
}
?>

How do it for version 6?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.