Exporting domain configurations

Last updated on
30 April 2025

Domain configuration can be exported with the Features module.

Available exports

  • Domains
  • Aliases
  • Domain-specific theme settings
  • Domain-specific settings

Export tips

How to organize your features. (I recommend one feature per type, e.g. domains, aliases, settings, themes)

Special export options

Starting in 7.x-3.4, when you export to a feature, you have two extra options aside from the data for a specific domain:

[ ] Wipe tables on revert/rebuild
[ ] Export all domains

Wipe tables on revert/rebuild

This option adds functionality that is missing from the main Features module. If set, any time you restore a domain feature, any data that doesn't match the feature will be deleted.

For example, export the following domains to a feature:

example.com
one.example.com
two.example.com

Without the wipe tables option, if you add a new domain three.example.com, this Feature will not appear as overridden and a rebuild will not remove three.example.com.

Conversely, if the wipe tables option is enabled, then adding the new domain will mark the feature as overridden; reverting the feature will delete the three.example.com domain.

This option is disabled by default.

Export all domains

The Export all domains option in the interface is a simple helper that will select all domains for export to a Feature. This option is most useful if you have more than a few domains.

Overridden features

How DA determines "overridden" status. What it means.

Rebuilding features

What happens on rebuild. Warnings and advice here.

Debugging / sample export code

Tips for devs looking at a features export? Samples of the default hooks?

Help improve this page

Page status: Not set

You can: