Features customize

Component ID

1118098

Component name

Features customize

Component type

module

Component security advisory coverage

not-covered

Component created

Component changed

Component body

From #875180: Map Features Regions to alternate Theme Regions.

The Kit features spec is a step towards enabling interoperability of features, but there's still a need to be able to adjust features to a local install. Regions are a case in point: contexts used for block placement in a feature need to specify a region, but that region may not be available in a given site's theme.

The attached module is a first cut at addressing this need. It provides a configuration form at admin/build/features/customize, with a sub menu item there for each enabled theme. For each region specified in a feature context but not available in the given theme, an admin can select a region to be used.

hook_context_load_alter() is used to switch out the unavailable regions for ones mapped for the current theme.