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.
From doing some admin_views dev it would be really handy to filter exportables by their export module. Then I can do stuff like this:
Filter the info by module:
drush ctei --module=node
or by module and status:
drush ctei --module=node --filter=enabled
and also filter the op commands:
drush cted views_view --module=node
Comment | File | Size | Author |
---|---|---|---|
ctools-drush-module-filter.patch | 7.84 KB | damiankloip |
Comments
Comment #1
swentel CreditAttribution: swentel commentedLooks good to me. The only confusing part is that --filter is also used for exporting but has a completely different meaning. I think it might be nice if they would do the same thing and we rename --filter for exporting to something like tables. What do you think ?
Comment #2
damiankloip CreditAttribution: damiankloip commentedThanks for the review and test! That seems like a good idea. It might make more sense that way. So maybe instead of --filter we could have --tables on ctools-export, and maybe --status instead of --filter on ctools-export-info. How does that sound?
Comment #3
swentel CreditAttribution: swentel commentedStatus is indeed even better!
Comment #4
damiankloip CreditAttribution: damiankloip commentedCool. I think they should be in a different patch though. Did you say you had a patch to do with the exports? I did leave you a message on IRC too, I don't think you have got it yet though.
Comment #5
damiankloip CreditAttribution: damiankloip commentedLet's get this in. Just committed to 7.x