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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim.plunkett’s picture

Status: Active » Needs review
FileSize
1.73 KB

Here's my first attempt at this.

Spleshka’s picture

I 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?

tim.plunkett’s picture

Assigned: Unassigned » tim.plunkett
Status: Needs review » Needs work

Yep, I'll work on that soon.

Spleshka’s picture

Nice, looking forward for your patch.

tim.plunkett’s picture

Assigned: tim.plunkett » Unassigned
Status: Needs work » Needs review
FileSize
9.83 KB

Here'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.

Spleshka’s picture

Status: Needs review » Fixed

Thanks Tim! I added constants and made couple fixes, tested and commited your patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.