Community Documentation

Installing, enabling and disabling bundled Features

Last updated December 10, 2011. Created by Itangalo on September 20, 2009.
Edited by donquixote, HongPong, xenophyle. Log in to edit this page.

Install / enable

Installing ready-made features is as easy (or even easier) than installing the module:

  1. 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.
  2. 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.
  3. 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 :)

Publically 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

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.

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?