Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Bulk Exporter
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2012 at 18:28 UTC
Updated:
15 Aug 2012 at 12:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
swentel commentedOk, the patch does following things:
- add an option to the export command called filter, changing the original one to tables, making more sense
- add a helper function called _ctools_drush_filter_exportables() that filters
- add an 'all' filter that does nothing
- the export callback checks for the filter and defaults to enabled as that makes more sense
Haven't tested this fully through, only the export command, but I think we should be save.
Comment #2
swentel commentedHrm, deleted the array_filter() function - new patch.
Comment #3
damiankloip commentedThis being removed from ctools_drush_export_info leaves the $load = ... below not working, also the filtering switch has been moved out of this function but now it's not called in here :)
I would still default the exportables in ctex to all, but I'm easy, if you think that is better, that's fine with me.
Comment #4
swentel commentedThis one should be better I think
Comment #5
swentel commentedDropped the pass by ref and return the array_filter()
Comment #6
damiankloip commentedThat looks much better! :) Committed to 7.x
I will also change the _ctools_drush_export_module_filter to return aswell, so they are consistant.
Comment #7
damiankloip commented