Module Description
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:
* Integrate with ECA - this is already included in Flag 8.x-4.x-dev
* Re-implement tokens
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
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:
* Integrate with ECA - this is already included in Flag 8.x-4.x-dev
* Re-implement tokens
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
Module Link
Project Usage
79
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the integration of ECA with the Flag module by providing events, conditions, and actions to automate flagging and unflagging entities based on specific triggers.
Data Name
eca_flag