Popular Packages

  • drupal-eca-recipe/eca_lib_0031

    This model works with a date and time value from a node field and does various things to it: outputting in different formats, adding some time range, changing timezone, etc.Especially the timezone feature requires a [patch to the tamper module](https://www.drupal.org/project/tamper/issues/3268276#co

  • drupal-eca-recipe/eca_lib_0030

    This model demonstrates how to create a content entity with data from a JSON string. It also shows why creating a user entity "the classic way" doesn't work, more about the reasons for that are explained in the video.The creation of this module was recorded and the video with additional explanations

  • drupal-eca-recipe/eca_lib_0028

    This model demonstrates how to access form field values during validation or submission, how to find out the proper token syntax for each form field type, and also an alternative approach by building a temporary entity from form field values to use the more transparent entity token syntax.The creati

  • drupal-eca-recipe/eca_lib_0027

    This model appends a comment to the author of a node when they create a new one or update an existing one.The creation of this module was recorded and the video with additional explanations can be [watched here](https://tube.tchncs.de/w/7jPP8ZXuhahq5K87L2cSrn).

  • drupal-eca-recipe/eca_lib_0026

    This model automatically adds or removes a role from a user, when this gets updated, depending upon 3 conditions that are stored with the user entity. Only if all 3 conditions are met, the role gets added. In all other cases the role gets removed.The creation of this module was recorded and the vide

  • drupal-eca-recipe/eca_lib_0025

    This model sends an email to a user that has just registered on the site. That email contains field values, that the user just provided in the registration form, where one of the fields is mandatory and the other one is optional. The email message is different, depending upon the optional field bein

  • PHP

    wobeto/string

    object string

  • drupal-eca-recipe/eca_lib_0020

    This model reacts upon creating a new page node. It then creates a new article node, its title is populated with the page auther's name, some static text and the title of the created page.The [recorded video](https://tube.tchncs.de/w/2nSZ9TDmtZ5YYrnyFfaNUC) provides more explanation as we go on.

  • drupal-eca-recipe/eca_lib_0018

    This model demonstrates how a text field in a user entity can be kept in sync with a similar field in an associated profile entity. This works in both directions. Regardless which of the entities gets updated, the other one will be updated automatically as well.Without paying attention, this could l

  • drupal-eca-recipe/eca_lib_0017

    This model sends an email when any node got updated. That email contains a couple of tokens, e.g. the name of the user who edited the node and the link to the node. It also contains the the revision log message that the user has left in the edit form.As the author may skip the revision log, this mod

  • drupal-eca-recipe/eca_lib_0015

    This model prints a message on screen, when the user opens the user profile form for editing. The message output is limited to users that have one of the roles editor, customer or auditor.

  • drupal-eca-recipe/eca_lib_0014

    This model comes with 2 processes, that look similar but do behave differently. They get executed by calling `drush eca:trigger:custom_event procorder` on the console of the Drupal site.What the 2 processes do is to set a token value, then overwrite that token with a different value and finally prin

  • drupal-eca-recipe/eca_lib_0013

    This model defines a serialized list with all of the list items being separated by a pipe character from each other. It then defines 5 different values and verfies if they are contained in the list, displaying either a success or failure message.The comparison requires the pipe character also suroun

  • drupal-eca-recipe/eca_lib_0012

    This model adds a number field to the user entity with a default value 0. It then increments that value, each time that user logs into the site.

  • drupal-eca-recipe/eca_lib_0011

    This model increments a sidewide ID by 1 and returns that on screen. It uses Drupal's state service to store the value inbetween requests.