Was having a play with this module this afternoon and thought i'd have a go at the JSON storage format. Attached is a patch, it's not complete but it's a start.

To Do

  • Add tests
  • Test on PHP 5.3. We're using JSON_PRETTY_PRINT which wasn't added until PHP 5.4. I'd presume it would just be ignored but can say for sure.
  • Refactor the admin configuration form so we don't have a hardcoded array of classes.

If anyone else wants to have a go at this, feel free to takeover.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

benjy’s picture

Status: Needs review » Needs work

The last submitted patch, configuration-add-json-storage-format.patch, failed testing.

dagmar’s picture

Seems this patch was created using another repository. We shouldn't see this a/sites/all/modules/

In patches.

benjy’s picture

Status: Needs work » Needs review
FileSize
5.64 KB

Yeah my mistake. I didn't actually have the module in source control alone, I just dropped it into a site for testing.

Josh Waihi’s picture

patch works well (still) but needs support to also export configuration.inc json.

Josh Waihi’s picture

Here is a patch that exports configurations to JSON - however it will not likely be able to read it back in again (yet).