drush ctools-revert
or
drush cr
or
drush cr myexported_object_name

If called without the object name after, you will get a list to choose from, of the overridden objects that are handled by ctools, plus an option to revert all of them.

Currently I'm only seeing context objects showing up in the list, apparently views doesn't use this way of exporting its views, and feautures must be doing something else.

Any pointers, code reviews, etc are very welcome!

For what shows up in the list it works, as far as I can tell.

CommentFileSizeAuthor
drush-ctools-revert.patch4.48 KBmanuel garcia

Comments

manuel garcia’s picture

I'm happy to say that now that 7.x-3.x actually uses ctools export api, this patch works for reverting views.

I think this could render #1079178: Drush command to revert views obsolete, if this one goes in.

swentel’s picture

There are a set of commands in now in the 7.x branch, we should see if we can backport those all to 6.x - if still wanted of course.