Search by

drupal-eca-recipe / eca_lib_0036

jurgenhaas

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

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

3.0.5 2026-09-01 14:36 UTC

This package is auto-updated.

Last update: 2026-09-01 14:37:46 UTC


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