Closed (fixed)
Project:
Rules
Version:
6.x-1.0-rc2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 May 2009 at 19:54 UTC
Updated:
31 May 2009 at 02:40 UTC
It would be very useful to have an option to reset all flags of a node (or something else) as an action. currently its only possible to reset the flag for the current user or the contents author. The Module flag_abuse provides a similar function to reset all abuse flags for a node so maybe it might be useful to look at it.
Purpose : Users could flag content as outdated and if more than a specific numbers of users have flagged the content as outdated, the author gets notified. After he updated his content every flag could be reset then.
Comments
Comment #1
mitchell commentedAfter looking into this, it seems you were definitely on the right track with flag_abuse.
I'm marking this as a duplicate of #327901: Action: clearing a node's flaggings.
On the other hand, there might be another way to do this using the existing rules integration for unflag and #329500: support for looping and data lists or #371728: Load Multiple Nodes to perform actions on them, but wouldn't seem ideal.
Comment #2
amitaibuHaven't tested, but maybe you can use the action 'trim falg' and set the value to 0.
Comment #3
mitchell commentedPlease see Flag's Rules Integration Documentation. Here's an example as well, http://drupal.org/node/405754