eca_flag
232 sites
Security covered
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 entityorFlagevents. Both will operate similarly. The same for eitherDelete flagging entityorUnflagevents. - If either of those events gets triggered, ECA puts several things onto the token stack:
flagthe flag entityflaggingthe flagging entityentitythe 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
flaggingswhere each item in the list contains the tokens listed above
- You can either react on
- 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 valuescondition 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