Closed (duplicate)
Project:
Flag
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Aug 2008 at 18:10 UTC
Updated:
21 Aug 2008 at 12:12 UTC
I'd like to add an "Approved" flag to one of my content types. I then want any subsequent edits of this node to remove this flag. Is there any out of the box ways to do this?
The first solution I could think of was to add a workflow-ng rule so that when content has been updated of my content type then an "Execute custom PHP code" action would be fired to unflag this node. I prefer not to use that type of action when I can avoid it though, so I'd like to put together a flag_workflow_ng.inc file if it would be considered for being added to flag module. It would create 2 actions for every flag, a flag node and unflag node for that particular flag.
Comments
Comment #1
mooffie commentedNot yet, but almost:
#298109: Rules integration
#298111: Backport Rules to Workflow-ng
I'm afraid I'll have to refuse your offer. This help might make me work harder, because instead of mere coding, which is easy, I'll have to revamp your code if it isn't "perfect" in my eyes.
But I'll certainly value your opinion and criticism.
I've just replied to this suggestion in the Rules issue. I'd like to hear your opinion.