Closed (fixed)
Project:
Entity view modes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2011 at 18:00 UTC
Updated:
23 Dec 2011 at 02:50 UTC
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
Comment #1
dave reidThat'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).
Comment #2
BenK commentedSubscribing
Comment #3
fabsor commentedThis should work with the latest version of strongarm. The latest version actually saves all exported variables into the variable table.
Comment #4
timcosgrove commentedI 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.
Comment #5
dave reid