Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module integrates the ECA framework with the Flag module to trigger actions based on flagging and unflagging events. It provides events that fire when an entity is flagged or unflagged, making relevant entities and flagging data available as tokens. Additionally, it offers a condition to check if an entity is flagged and an action to retrieve flagging entities.

Integrates ECA with Flag.

For now, as the Flag module doesn't have a stable release yet, you need to apply 2 patches to the flag module when starting to use this:

Features

  • Events
    • You can either react on Insert flagging entity or Flag events. Both will operate similarly. The same for either Delete flagging entity or Unflag events.
    • If either of those events gets triggered, ECA puts several things onto the token stack:
      • flag the flag entity
      • flagging the flagging entity
      • entity the flagged or unflagged entity

      Note: if a flagging gets added or if the unflagging happens on exactly on entity, then you get those items on the token stack. However, unflagging can be triggered for many entities at once, then you get a list on the token system under the name flaggings where each item in the list contains the tokens listed above

  • Conditions
    • There is 1 condition from eca_flag which asserts whether a given entity is flagged or not
    • All other conditions can be achieved with the Compare two scalar values condition by using tokens from the flag entities
  • Actions
    • There is 1 action to get one or many flagging entities for a given entity and stored as an entity or a list of entities onto the token stack
    • Actions provided by the Flag module to flag or unflag entities can also be used in ECA models

Activity

Total releases
5
First release
Jun 2025
Latest release
10 months ago
Releases (12 mo)
4 ▲ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
2.0.5 Stable Sep 5, 2025
2.0.4 Stable Aug 16, 2025
2.0.3 Stable Aug 15, 2025
2.0.2 Stable Aug 15, 2025
2.1.0-rc1 Pre-release Jun 25, 2025