Ever happened to you that you were working on a custom module and realized you wanted to turn it into a feature, so that you can export Features components into it? Fortunately, it's fairly simple!
-
Add this line to yourmodule.info:
features[features_api][] = api:1
-
Create a file called yourmodule.features.inc.
-
Add this line at the beginning of yourmodule.module:
include_once 'yourmodule.features.inc';
-
Clear your cache.
-
That's it, Features will now recognize your module!