I wonder that I don't get the date values of the moment, when entities are flagged. I even tried that with loading flagged node entity objects by vbo view with nid argument for the flagged node, but I can't get the flag date. Is there any possibility to achieve that?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Version: 7.x-2.2 » 7.x-3.x-dev

The Flagging timestamp isn't declared to the Entity API metadata in flag_entity_property_info_alter(). AFAIK that is where Rules would get this from.

Though it looks like Flagging properties in general aren't declared there.

torgosPizza’s picture

Status: Active » Needs review
FileSize
1.51 KB

Needed access to this property on our entities (for setting a message with Rules). I do think we should have access to more entity properties with Rules, but this one is probably the most important besides the is_flagged boolean.

Attached patch does this, my only caveat is that this will make it available across all flags. Pretty sure that's what we want, but as always, testing and feedback is appreciated.

torgosPizza’s picture

That patch was missing a few things. New (and working) patch attached, with interdiff.