Hello,

I have some custom behaviors. Currently, ECK features does not add the modules implementing behaviors as dependent. I also found this comment in eck_entity_type_features_export()

function eck_entity_type_features_export()
...
// @todo We need to add dependencies on the modules implementing the
// property behaviors currently they are all implemented by ECK but in the
// future, people might have their custom behaviors.. or we might have
// behaviors provided by contrib.

Would this be the right way to do it?
+ load all "property_behavior" plugins
+ load the entity type by name
+ loop trough all entity properties and add the modules implementing those properties as dependent

If the above is correct I could start working on a patch.
Are there any plans of implementing this?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fmizzell’s picture

I think you would want to load the entity type first. In that object you will have properties and behaviors info. I am pretty sure that ctools plugins give us the info about which module is implementing the plugin/behavior, and we can add the dependent modules from there.

A patch would be greatly appreciated @mihai_brb :)

mihai_brb’s picture

Here's a patch that worked for me.

Status: Needs review » Needs work