0

I created an API module with a hook_schema(), where one table has an 'export' key to make the entries exportable with ctools (as features).

Now specific entries of this module may depend on specific modules. I would like these module dependencies to be added automatically to a feature exported this way.

Any idea how this is done?

  • 1
    I don't know exactly how, but I think it's done using hook_features_pipe_COMPONENT_alter – Beebee Aug 8 '16 at 16:07
  • This looks good. But not all data is provided in this hook. Only the machine names of the exported entries, but not their data. – donquixote Aug 8 '16 at 16:29
  • Sorry I don't really know how to implement this myself. You can check other modules and see how they do it too :) If you find a solution, it'll be interesting to see. Please post it. – Beebee Aug 12 '16 at 8:56
  • One can simply load this information from elsewhere. – donquixote Aug 12 '16 at 17:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.