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
Supporting organizations: 

Project information

Releases