Using Drush export content type, and views
We're not sure what to do with these: we've written two simple Drush scripts for exporting content types and views. Saving us from having to navigate a few pages and precious seconds.
Steven Jones · 1 min readWe're not sure what to do with these: we've written two simple Drush scripts for exporting content types and views. Saving us from having to navigate a few pages and precious seconds.
Download them and pop them somewhere Drush can find them, a good candidate would be in ~/.drush
Then you can run them by typing:
drush export view <view_name>
or
drush export content type <type_name>
You should now either have an error message or and exported view or content type in a file. The files are saved in the current working directory (in most cases where you ran drush from) so you can export views and content types right into your custom modules' include directories.