1

I need to unsubscribe users from a specific simplenews newsletter category after a newsletter of that category has been sent. The best way is to do this action after updating sent status of newsletter. but there are not a hook or event to do this. What is your opinion to implement this task?

3
  • Did you try using rules. I hope simplenews integrates with rules.
    – James
    Jan 10, 2015 at 13:15
  • Simplenews only provides two events in rules: when a single user subscribes or unsubscribes. Jan 10, 2015 at 13:40
  • Currently, I remove subscriptions in hook_simplenews_spooled. But it is not a good way to do this task. Jan 10, 2015 at 13:42

1 Answer 1

0

The best way would be patch simplenews to offer more events.

Second best would be to override simplenews via a custom module to offer more events.

There are other options but those are the best following the Drupal way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.