Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#3 | ctools--Add-ctools-export-import-drush-functionality--2447719--3.patch | 1.56 KB | damontgomery |
Comments
Comment #1
EclipseGc CreditAttribution: EclipseGc commentedPatch!
Comment #2
EclipseGc CreditAttribution: EclipseGc commentedThis obviously needs a lot of love around docs and just generally double checking it, but this should roughly function.
Eclipse
Comment #3
damontgomery CreditAttribution: damontgomery commentedI 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?
Comment #4
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 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.