Libraries tagged by eca
drupal-eca-recipe/eca_lib_0032
65 Downloads
Consumes a remote API through the HTTP Client Manager module, then exposes an ECA endpoint of its own with access control and a composed response.
drupal-eca-recipe/eca_lib_0031
107 Downloads
Reads a date value from a node field and demonstrates the tamper actions that reformat it, shift it by a fixed time range and render it in another time zone.
drupal-eca-recipe/eca_lib_0030
63 Downloads
Creates a content entity from a JSON string, and shows why the straightforward approach does not work for user entities.
drupal-eca-recipe/eca_lib_0029
135 Downloads
Adds a role to a user on insert or update, comparing three possible approaches and showing why only one of them is reliable.
drupal-eca-recipe/eca_lib_0028
78 Downloads
Reads form field values during validation and submission, showing how to find the right token syntax for each field type and how building a temporary entity offers a clearer alternative.
drupal-eca-recipe/eca_lib_0027
51 Downloads
Appends a comment to a node author's own user entity whenever they create or update a node.
drupal-eca-recipe/eca_lib_0026
94 Downloads
Adds a role to a user once three stored conditions are all met, and removes it again as soon as any of them stops being true.
drupal-eca-recipe/eca_lib_0025
282 Downloads
Emails a newly registered user with the values they entered during registration, varying the message depending on whether an optional field was filled in.
drupal-eca-recipe/eca_lib_0024
487 Downloads
Emails every user holding a given role, using a view with a contextual filter to select the recipients.
drupal-eca-recipe/eca_lib_0021
61 Downloads
Responds to events such as logins, registrations, error messages and new comments by sending notifications to email, Mattermost and Alerta.
drupal-eca-recipe/eca_lib_0020
114 Downloads
Creates an article node whenever a page node is created, building the new title from the page author's name and the page title.
drupal-eca-recipe/eca_lib_0019
157 Downloads
Shows how to drive Views Bulk Operations from a Views listing with ECA.
drupal-eca-recipe/eca_lib_0018
65 Downloads
Keeps a user field and a profile field in sync in both directions, writing to the other entity only when the values actually differ so the updates cannot loop forever.
drupal-eca-recipe/eca_lib_0017
280 Downloads
Sends an email whenever a node is updated, including the revision log message, which the model also makes a required field. A later version routes the notifications to different recipients depending on moderation state and section.
drupal-eca-recipe/eca_lib_0016
63 Downloads
Offers an access-controlled endpoint that queues a user export, runs the view on the next cron run, writes a CSV file and emails the requester a download link.