CTools has a bit of export functionality available along the command line, but there's no ability to actually run an import even though CTools export provides that functionality. Let's add a drush command that can do this, it's not super pretty, but it's very useful.

Eclipse

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

EclipseGc’s picture

FileSize
1.32 KB

Patch!

EclipseGc’s picture

This obviously needs a lot of love around docs and just generally double checking it, but this should roughly function.

Eclipse

damontgomery’s picture

I haven't been able to get the code to work since I'm not sure what to provide as a ctools export. I did add an option to use your code with files though since I think that would be useful. I was trying to export page manager code, but the ctex and ctexim commands don't seem to know what to do with it.

Could you provide an example of how to use this code?

Chris Matthews’s picture

The 4 year old patch in #3 to ctools.drush.inc applied cleanly to the latest ctools 7.x-1.x-dev and if still applicable needs review.

Checking patch drush/ctools.drush.inc...
Hunk #1 succeeded at 35 (offset -1 lines).
Hunk #2 succeeded at 376 (offset -10 lines).
Applied patch drush/ctools.drush.inc cleanly.