jurgenhaas member since: Jul 20, 2016 · Transparency log
jurgenhaas's packages
-
drupal-eca-recipe/eca_lib_0001
Prints a message when an article node page is requested, using the controller event so that it still fires for cached pages.
-
drupal-eca-recipe/eca_lib_0002
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 d
-
drupal-eca-recipe/eca_lib_0003
Redirects a request for an unpublished article node to the contact form when the visitor does not hold the core permission for viewing their own unpublished content.
-
drupal-eca-recipe/eca_lib_0004
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 u
-
drupal-eca-recipe/eca_lib_0005
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_0006
Loops over every value of a multi-value field without needing a custom event.
-
drupal-eca-recipe/eca_lib_0007
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_0008
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_0009
Groups the title and body fields on the article form and blocks publishing while the body is still empty.
-
drupal-eca-recipe/eca_lib_0010
Compares a user's roles before and after a save with two loops, and reports every role that was added or removed.
-
drupal-eca-recipe/eca_lib_0011
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_0012
Adds a number field to the user entity and increments it every time that user logs in.
-
drupal-eca-recipe/eca_lib_0013
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_0014
Two processes that look identical in the diagram but behave differently, showing that successors run in the order they were added rather than the order the model appears to show.
-
drupal-eca-recipe/eca_lib_0015
Shows a message on the user profile edit form, limited to accounts holding one of three selected roles.