drupal-eca-recipe / eca_lib_0036
Subscribes or unsubscribes users from a Simplenews newsletter on user presave, based on the roles they hold. Requires the eca_simplenews module.
Package info
gitlab.lakedrops.com/drupal/recipes/eca_lib_0036
Type:drupal-recipe
pkg:composer/drupal-eca-recipe/eca_lib_0036
3.0.5
2026-09-01 14:36 UTC
Requires
- drupal/eca: *
- drupal/eca_simplenews: *
- drupal/modeler_api: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
ID: eca_lib_0036
Automatically subscribes or unsubscribers users from a designated Simplenews newsletter based on the user's role. Triggered by user entity presave. Requires the eca_simplenews contributed module.
Installation
## Import recipe
composer require drupal-eca-recipe/eca_lib_0036
# Apply recipe with Drush (requires version 13 or later):
drush recipe ../recipes/eca_lib_0036
# Apply recipe without Drush:
cd web && php core/scripts/drupal recipe ../recipes/eca_lib_0036
# Rebuilding caches is optional, sometimes required:
drush cr