Closed (fixed)
Project:
Features Extra
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2011 at 14:50 UTC
Updated:
7 Oct 2012 at 18:43 UTC
We created 2 simple modules to export variables and i18n variables as features; feel free to integrate them in features extra.
These were tested on the 7.x branch.
https://github.com/liip/fe_variable
https://github.com/liip/fe_variable_i18n
Comments
Comment #1
wizonesolutionsThank you for your offer to contribute!
I'll leave the 7.x code management to toleillo. Question though. Can you detail how these differ from Features + Strongarm?
Also, not to say GitHub isn't awesome (I use it too), but code ultimately intended for Drupal.org is best started on sandboxes. See Creating a sandbox project.
Thanks again.
Comment #2
sitron2 commentedWe faced many issues with Strongarm and i18n and this is actually why we decided to write this module.
Our module has a very limited scope (on purpose): export and import core (and i18n) variables. It does not try to deal with anything during page load or whatever else.
If i'm not wrong, Strongarm creates new variables to override core ones on init which enables many other possibilities (and problems...)
If there is interests for any of the 2 modules (fe_variable, fe_variable_i18n) we would be glad to create a sandbox (didn't know of them until now).
Comment #3
sitron2 commentedNote that there is also a 3rd module to export/import wysiwyg settings: https://github.com/liip/fe_wysiwyg
Comment #4
wizonesolutions@sitron2: Thanks for your replies. Try to work with the relevant module maintainers first if you haven't already. Strongarm might be willing to extend its i18n support, and the WYSIWYG maintainers may be interested in (or there might already be a patch for) Features integration. In fact, I once used a patch for CKeditor Features integration myself.
This module isn't intended as a long-term solution anyway, and I'd like to see it deprecated in the near future. So if you find that my suggestions don't do the trick, I would suggest posting this (or moving it) to the UUID Features issue queue. That module has much more attention and eliminates the need for users to manually assign machine names to certain exportables.
Comment #5
pfrenssenI'm going to close this because there is no need for this functionality anymore. Variables can be exported perfectly fine with the Strongarm module, and the bugs that prevented it from integrating nicely with i18n have been fixed. The Wysiwyg module itself has added support for Features so this is not needed anymore either.