Folks,

I'm using the flag module. I want to unflag any flags that have been set for more than 24hrs. The flags are set on nodes. Does anyone know an easy (or difficult) way to do this?

Thanks

Comments

spovlot’s picture

The Rules module (http://drupal.org/project/rules) has integration with Flags. (or the other way around)

You can use the Rules Scheduler to automatically run a rule that checks the update date and "unflags" it.

A good tutorial on Rules is http://dev.nodeone.se/en/learn-the-rules-framework. There is even a specific chapter on Flags and also the scheduler.

Nigeria’s picture

Thanks I'll take a look.

Ade Atobatele