Libraries tagged by eca
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.
drupal-eca-recipe/eca_lib_0015
137 Downloads
Shows a message on the user profile edit form, limited to accounts holding one of three selected roles.
drupal-eca-recipe/eca_lib_0013
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.
drupal-eca-recipe/eca_lib_0012
90 Downloads
Adds a number field to the user entity and increments it every time that user logs in.
drupal-eca-recipe/eca_lib_0011
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.
drupal-eca-recipe/eca_lib_0009
82 Downloads
Groups the title and body fields on the article form and blocks publishing while the body is still empty.
drupal-eca-recipe/eca_lib_0008
80 Downloads
Redirects requests that would return a 403 access denied page to the login form, replacing the Redirect 403 To Login Page module.
drupal-eca-recipe/eca_lib_0007
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.
drupal-eca-recipe/eca_lib_0006
438 Downloads
Loops over every value of a multi-value field without needing a custom event.
drupal-eca-recipe/eca_lib_0005
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.
drupal-eca-recipe/eca_lib_0004
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.
drupal-eca-recipe/eca_lib_0002
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.
drupal-eca-recipe/eca_lib_0001
98 Downloads
Prints a message when an article node page is requested, using the controller event so that it still fires for cached pages.
dpu/ecard
10 Downloads
ecard 大连工业大学校园卡