Drupal is a registered trademark of Dries Buytaert

At this time, the Simplenews "subscribe" and "unsubscribe" actions (among other events, actions, and conditions) are not available to models created with ECA: Event - Condition - Action. This tries to fix that. (See this Simplenews issue for more background._

Features

Upon installation (along with the required ECA and Simplenews modules), two new actions are made available to ECA models: "Subscribe to newsletter" and "Unsubscribe from newsletter." Three conditions are also made available: "User is currently subscribed," "User has ever subscribed," and "Check for self-unsubscribes."

The "Check for self-unsubscribes" carries a caveat. Although Simplenews records the newsletter id for a subscribe, it does not do the same for an unsubscribe. Therefore this condition checks whether a user has previously unsubscribed from ANY newsletter. If you use this condition, you may want to use "Send email" or another action to notify and administrator to check for false positives.

Post-Installation

Here's an an example of how this module can be used:

Event: Presave content entity (Type and bundle: User -any- )
Action: Subscribe to newsletter (Email address: [user:mail] Subscribe to: default)

When saved and enabled, that model will automatically subscribe a user to the "default" (machine name) newsletter when the user is created or updated. Additional conditions can be added as with any ECA module. For example, "role of current user."

Additional Requirements

Requires ECA and Simplenews modules.

Activity

Total releases
1
First release
Feb 2026
Latest release
1 month ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
1.0.x-dev Dev Feb 3, 2026