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

mooffie’s picture

Status: Active » Closed (duplicate)

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?

Not yet, but almost:
#298109: Rules integration
#298111: Backport Rules to Workflow-ng

I'd like to put together a flag_workflow_ng.inc file if it would be considered for being added to flag module.

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.

create 2 actions for every flag, a flag node and unflag node for that particular flag.

I've just replied to this suggestion in the Rules issue. I'd like to hear your opinion.