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

wizonesolutions’s picture

Thank 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.

sitron2’s picture

We 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).

sitron2’s picture

Note that there is also a 3rd module to export/import wysiwyg settings: https://github.com/liip/fe_wysiwyg

wizonesolutions’s picture

Status: Active » Postponed (maintainer needs more info)

@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.

pfrenssen’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I'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.