Regarding the features module: I am working with a module which was created by features. I see a lot of .inc files in the module, but see very few actually included. Does this make any sense? I know that they are all being used and are creating fields etc.

  • Creating fields only needs to happen once, that would probably explain why you don't see the files included - they've already been included the one time they were needed
    – Clive
    Commented Aug 20, 2013 at 15:58
  • Oh, and how does features know about these files to include them once? Commented Aug 20, 2013 at 16:05
  • Looks like the work is done in features_include() and features_include_defaults(), at the root of it it seems to be a simple file naming convention
    – Clive
    Commented Aug 20, 2013 at 17:25

1 Answer 1


Most include files exported by features are included on-demand by the modules that define that type of component. For instance, example.views_default.inc is included by the views module when loading default views. This is a common pattern in Drupal, not something that is specific to Features.


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.