This stems from the work being done over @ #787198: Converting blocks to boxes.

I'd like to have some commands that control this like:
$ drush boxes-convert [optional-block-delta]
$ drush boxes-export [optional-block-delta]

Comments

sirkitree’s picture

Assigned: Unassigned » sirkitree
Status: Active » Needs work
StatusFileSize
new2.1 KB

Here's is my first pass at this. I think I implemented these hook correctly, but I might be missing something as this is my first drush integration I've written. The commands do not show up when i list drush commands for some reason, so I'm a bit baffled.

Also, I'm not really sure how to export a box. I assume there is a $box->export() method but do not see one in boxes_box.inc. I know this can be done as features can export boxes, but THAT logic is just crazy and I can't follow it easily. So any more guidance anyone can give on this would really be appreciated.

sirkitree’s picture

StatusFileSize
new2.47 KB

Ok second shot, fixing the silly bugs. Still need help with export though.

q0rban’s picture

subscribe

halcyonCorsair’s picture

subscribe.