5

At a high level, what needs to be undertaken to take a module's configuration data and make it exportable by Features?

Whether this is a contrib module that does not yet have Features support or a custom module that I have written, where can I start so that I can get it in code?

4
  • 1
    Too trivial: answered by looking at the readme files for the Features module.
    – user7
    Commented Mar 6, 2011 at 20:48
  • Have to say I disagree. For one, the concept of features and exportability is not a novice issue. Secondly, if for questions like these we are just going to say, "refer to the readme", then this site will add no value over what can be found on drupal.org. Commented Mar 6, 2011 at 22:56
  • If referring to the readme is all it takes to answer a question, that speaks more about the quality of the question than the quality of the answer. Commented Mar 7, 2011 at 15:58
  • 1
    People just saying "RTFM" is the reason sites like StackOverflow were created in the first place. Commented Feb 23, 2012 at 15:12

2 Answers 2

10

Instructions are in the Features API.txt, which provides several examples of how to better integrate your module with Features.

The easiest way seems to be building your module around the CTools Export API. Here's a pretty good article explaining how to do that.

0

If your module is already taking advantage of the Entity API:

specify EntityAPIControllerExportable as the controller class, set the exportable key in hook_entity_info() to TRUE and include the schema fields necessary (module, status column) by copying the schema as defined in entity_exportable_schema_fields() to your hook_schema() implementation

See the Community Docs: Make an entity type exportable

1
  • looks working .
    – monymirza
    Commented Dec 7, 2012 at 4:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.