Entity API has an exportables system that is designed for Features.

Could it be used here too?

Comments

swentel’s picture

StatusFileSize
new5.79 KB

WIP - exports should be fine - import needs to be done, but more overrides should be done in the storage class.

swentel’s picture

Actually, turns out features needed to be enabled - at least to get rid of all the constants, probably needs some rethinking, although it should be possible

dagmar’s picture

Thanks for working on this!.

Personally I preffer to duplicate the code from features to avoid need to install both modules in order to export entities.

swentel’s picture

Yeah me too, I had features enabled by accident, that's why it was working initially, it's back to the drawing board I'm afraid.

dagmar’s picture

Status: Active » Needs review
StatusFileSize
new6.53 KB
new6.36 KB

This is working for me. Please confirm.

dagmar’s picture

StatusFileSize
new1001 bytes
new6.84 KB

Added the automatically detection of fields attached to an entity.

dagmar’s picture

StatusFileSize
new776 bytes
new7.6 KB

Tested with rules (see #1923314: Integration with Rules).

Fixed dependency detection, rules doesn't allow fields.

dagmar’s picture

Status: Needs review » Fixed

Committed and Pushed to 7.x-2.x.

swentel’s picture

@dagmar - sorry for not getting back to this, but I can confirm the commit works fine. Tested it with a rule export and comes in fine, nice work!

Status: Fixed » Closed (fixed)

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