pleas made a Features integration.

Comments

znerol’s picture

Thanks for your suggestion. I am also very interested in having the option to export Block Groups into code.

According to this blog post (also see comments) there are three popular options:

  1. Make the configuration exportable with ctools
  2. Implement the Features API
  3. Convert the block group configuration to entities and make them exportable

However the problem is that Block Group does not provide any configuration apart from the standard block options. The only configuration a Block Group has is its name and machine name. The former maps directly to the block title while the latter maps to the block delta. Block Group does not have a database table by itself, it just relies on the core block table. Therefore it seems to me that option 1 and 3 are not going to work.

Also I think that only having the Block Group configuration exportable (i.e. the Name and Machine Name) but not the block settings (visibility, placement) will not be very useful. A better approach would be to try integrating with an existing module capable of exporting blocks and try to inject the Block Group configuration there.

I have not done the research, so if you find a module capable of exporting blocks, please post a link here.

neomen’s picture

Yes, block don't have a features integration, but I use a "boxes" module (https://drupal.org/project/boxes), they have a export and features integration.

znerol’s picture

Status: Active » Fixed

Committed and pushed ebe4e35.

Please note, that block settings are not managed. Use the Block Settings from Features Extra in order to manage those.

Status: Fixed » Closed (fixed)

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