FYI you cannot export the 'entity_view_modes' variable with Strongarm & Features as the variable does not get loaded into Drupal in time for the entities configuration to be loaded, thus causing the view modes to disappear. What you have to do instead is just export the variable array to the site's settings.php file, which at least allows you to codify the configuration.

Comments

dave reid’s picture

That's too bad. I was thinking about providing a way to allow users to 'export' the view modes into code (since there is already a hook for this).

BenK’s picture

Subscribing

fabsor’s picture

This should work with the latest version of strongarm. The latest version actually saves all exported variables into the variable table.

timcosgrove’s picture

Status: Active » Reviewed & tested by the community

I have confirmed that the most recent Strongarm (7.x-2.0-beta4) does in fact load view modes correctly. This issue can be closed.

Direct features integration would be nice, but 'patches welcome' as they say :) I may add that in myself; I'm very interested in people making greater use of view modes.

dave reid’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.