Last updated December 21, 2012. Created by Itangalo on September 20, 2009.
Edited by neerajskydiver, cedewey, donquixote, HongPong. Log in to edit this page.
Install / enable
Installing ready-made features is as easy (or even easier) than installing the module:
- Find and download the feature. Unzip or untar it if you have to – you should end up with a folder and not a compressed file.
- Put the folder in a suitable folder in your Drupal installation. A good choice is sites/all/modules/custom/features, but any sub-folder to sites/all/modules will do.
- Go to the features administration page (admin/build/features), check the features you wish to activate, and save the settings. Done!
Note: If you are unable to check the box for a feature it is most likely because some of the modules it depends on are missing. Check the unmet dependencies below the features title and install the appropriate modules.
Disable a feature
If you need to disable a feature at a future time, you just need to visit the Feature administration page, deselect the appropriate checkbox and hit Save settings.
By design, disabling the feature module is supposed to also disable all the functionality that was defined by it. That is, remove node types that were created by it, etc.
"Silently" disable a feature module (Stub)
Sometimes you want to disable a feature module, but not lose the functionality or configuration that was defined by it.
Features is not designed for this situation.
If you find a way to do this, feel free to share it in a comment :)
Publicly available ready-made features
You can look for and update the list of ready-made features at Directory of Public Feature Servers.
Comments
Features page equivalent with modules page?
Do I understand this correctly - these three are equivalent:
1. Check the checkbox for the feature module on the modules page (D6: admin/build/modules), save.
2. drush en [feature module name] in the commandline.
3. Go to the features administration page, enable the feature there.
(and the same for disabling)
So the features administration page is just a more convenient place for module enabling / disabling?
(mostly because the list is restricted to features, thus it is shorter)
Sometimes you want to disable
I'm running into this exact same scenario. I have some Features I want to use as a clean way to configure a site, without actually providing the feature code.
Sort of using as a one-off install profile, but for a Feature instead of a site. Right now, you can remove all install profiles from an installed drupal site and it doesn't matter. I need to do this for a Feature and not have things go pear shaped or leave orphaned DB data referring to the now missing Feature files.
Does anyone know of a method?
"Silently" disabling a feature module
You can use the Features Tools module to disable a module while leaving functionality in place.
These instructions are for D7, if you are using D6 there is an extra step.
See ftools project for more complete documentation.
http://drupal.org/project/ftools
PS - unchecking all the boxes in the features ui is much quicker if you install a browser plugin like check all first.
Delete feature
I added a feature as test to see how it works.
I can't now delete it, even when I disable it, the feature shows in the WYSIWYG text format drop down. I desperately need to remove the created feature entirely not just disable. I used a silly machine_name which I can't now change. What would you suggest?
Disable, uninstall, remove
I'd do the following:
1) Disable the feature (which you have already done).
2) Go to the modules unistall tab, and run any uninstall scripts for the feature.
3) Delete the feature from your codebase.
4) If the wysiwyg format is still there, go into your text format settings and delete it manually.
(I'm a bit hesitant to write a comment here, since comments on docs pages are generally discouraged. But since you're desperate I make an exception for myself. :-)
Check out Skill Compass – an experiment for Drupal learning.