Libraries tagged by eca

drupal-eca-recipe/eca_lib_0017

0 Favers
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.

Go to Download


drupal-eca-recipe/eca_lib_0016

0 Favers
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.

Go to Download


drupal-eca-recipe/eca_lib_0015

0 Favers
137 Downloads

Shows a message on the user profile edit form, limited to accounts holding one of three selected roles.

Go to Download


drupal-eca-recipe/eca_lib_0013

0 Favers
67 Downloads

Tests whether values occur in a pipe-separated list, wrapping each needle in the delimiter so that a partial match cannot report a false positive.

Go to Download


drupal-eca-recipe/eca_lib_0012

0 Favers
90 Downloads

Adds a number field to the user entity and increments it every time that user logs in.

Go to Download


drupal-eca-recipe/eca_lib_0011

0 Favers
69 Downloads

Increments a site-wide counter and returns it, keeping the value between requests in ECA's own persistent store rather than in Drupal's state service. An "Acquire lock" action guards the read and the write so that two concurrent requests cannot receive the same number.

Go to Download


drupal-eca-recipe/eca_lib_0009

0 Favers
82 Downloads

Groups the title and body fields on the article form and blocks publishing while the body is still empty.

Go to Download


drupal-eca-recipe/eca_lib_0008

0 Favers
80 Downloads

Redirects requests that would return a 403 access denied page to the login form, replacing the Redirect 403 To Login Page module.

Go to Download


drupal-eca-recipe/eca_lib_0007

1 Favers
336 Downloads

Demonstrates several user account automations together: notifying administrators of new accounts by email, sending users to role-dependent destinations after login, and granting or revoking an internal role from the account's email domain.

Go to Download


drupal-eca-recipe/eca_lib_0006

0 Favers
438 Downloads

Loops over every value of a multi-value field without needing a custom event.

Go to Download


drupal-eca-recipe/eca_lib_0005

0 Favers
57 Downloads

Compares a user's network references before and after a save to detect exactly which ones were added or removed, and reports each change.

Go to Download


drupal-eca-recipe/eca_lib_0004

0 Favers
77 Downloads

Demonstrates how to express an if/elseif/else decision in an ECA model, the pattern people usually reach for when they want a PHP switch statement. ECA has neither a switch construct nor a working exclusive gateway, so the model uses the sentinel-default idiom instead: it assigns the default value up front, lets a matching branch overwrite it, and then, one hop downstream, tests whether the value is still the default in order to detect that nothing matched. Along the way it demonstrates the four-links-to-one-target OR idiom, in which several conditioned links leaving the same predecessor point at the same successor, so that any one of them is enough to run it.

Go to Download


drupal-eca-recipe/eca_lib_0002

0 Favers
106 Downloads

Demonstrates how conditions are combined in ECA, where a successor link carries at most one condition and every combination is therefore built from the arrangement of links. The model shows the three idioms that follow from that constraint. An AND is chained through a pass-through action, an OR is drawn as several conditioned links into one target, and a nested combination composes the two into (A or B) and (C or D). It is driven entirely from the command line, reading three inputs from Drupal persistent state and reporting which of its three rules matched, so that changing one input and triggering again shows a different set of paths.

Go to Download


drupal-eca-recipe/eca_lib_0001

0 Favers
98 Downloads

Prints a message when an article node page is requested, using the controller event so that it still fires for cached pages.

Go to Download


dpu/ecard

0 Favers
10 Downloads

ecard 大连工业大学校园卡

Go to Download


<< Previous Next >>