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.
Problem/Motivation
The "Expire urls of entities which are referenced from the expiring node" feature was very promising, but did not work for my case since the entity reference is actually attached to a field_collection which is on the node.
Proposed resolution
Add the ability to traverse field collections when looking for entity references.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#5 | expire-2248371-5.patch | 9.83 KB | tim.plunkett |
Comments
Comment #1
tim.plunkettHere's my first attempt at this.
Comment #2
SpleshkaI think this is a good idea to add integration with field collection, but don't you think we need to extend admin options so he can decide whether to expire referenced from field collection or not?
Comment #3
tim.plunkettYep, I'll work on that soon.
Comment #4
SpleshkaNice, looking forward for your patch.
Comment #5
tim.plunkettHere's what I came up with.
I also expanded it to comment nodes and users, not just nodes.
I skipped adding another 3 constants, I think FALSE is fine here.
Comment #6
SpleshkaThanks Tim! I added constants and made couple fixes, tested and commited your patch.