Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#3 | 2362383-2-3-interdiff.txt | 1.75 KB | torgosPizza |
#3 | 2362383-flag-flagged_timestamp-3.patch | 1.6 KB | torgosPizza |
|
Comments
Comment #1
joachim CreditAttribution: joachim commentedThe 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.
Comment #2
torgosPizzaNeeded 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.
Comment #3
torgosPizzaThat patch was missing a few things. New (and working) patch attached, with interdiff.