Closed (fixed)
Project:
Views Import
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2015 at 13:11 UTC
Updated:
30 Oct 2015 at 10:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bigjim commentedThe last one you can accomplish already, you can reset Views using the vr command that ships with views
ie:
drush vr <view_name>or
drush vr --allComment #2
bigjim commentedWrote a patch to support exporting files using drush.
Adds the vie command which supports options for writing individual views or all the views in the system.
Usage
To export all views to views_import folder:
To export the frontpage view to views_import folder:
Comment #3
bigjim commentedOpps wrong patch :D
Comment #4
bigjim commentedMore updates, little things like including the drush callback function. ;)
Comment #5
mrded commented@bigjim, thanks a lot for your patch, that's really helpful!
Can you also fix a code style if you don't mind? Or I can do it myself.
Comment #6
bigjim commentedThis should do it.
I added a few fixes to issues already there ;)
Comment #7
bigjim commentedoops forgot the new files again (Git and I aren't friends this week)
Comment #8
bigjim commentedupdating to needs review
Comment #9
AlexKirienko commented@bigjim Great patch! Thank you
Comment #10
mrded commentedLooks like VIEWS_IMPORT_DIR constant is not visible from views_import.drush.inc file.
Comment #11
mrded commentedOne more question: Why do you use --all=1 argument? Why not just --all?
Comment #12
mrded commentedI made a fix of VIEWS_IMPORT_DIR visibility.
Comment #13
mrded commentedI also made a quick refactoring, If you are interested.
Comment #16
mrded commented@bigjim, Thank you for your work! Great patch ;)