Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module adds new actions and conditions to the ECA system, allowing you to integrate Simplenews subscription and unsubscription functionality into your automated workflows. It provides actions to subscribe and unsubscribe users from newsletters, along with conditions to check subscription status or self-unsubscribes. This enables you to automate user newsletter management based on various events and conditions within your Drupal site.

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
2
First release
Feb 2026
Latest release
2 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0-alpha1 Pre-release Apr 28, 2026
1.0.x-dev Dev Feb 3, 2026