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.
It would be nice to have a drush command to revert an Omega subtheme, so this can be done quickly and efficiently from the command line.
Currently this can be done with this command:
drush eval "omega_tools_revert_theme_settings('themename');"
But it would be nice to be able to do:
drush omega-revert themename
for applying use patch -p1 < patch_name.patch
Comment | File | Size | Author |
---|---|---|---|
#1 | 1735534-1-omega_tools-drush_revert_command.patch | 2 KB | pfrenssen |
Comments
Comment #1
pfrenssenComment #2
Kendall Totten CreditAttribution: Kendall Totten commentedSImilarly it would be great to be able to export theme settings to the .info file and then revert. Is this possible with drush? Thanks!
Comment #3
vlad.dancerGood job!but some typo cleanup need.
It indicates that you do not have a newline (usually '\n', aka CR or CRLF) at the end of file.
Unnecessary spaces
Comment #4
pfrenssenI reviewed my patch again and it seems to be fully compliant to coding standards, can you please elaborate where it goes wrong? I'm not introducing any whitespace errors.
Comment #5
vlad.danceruse drupal.org/project/dreditor to understand what i'm tying to say. Thx.
Comment #6
vlad.dancerI got you! All my comments was about patch in git style, but as i see your patch applied by "patch" command not "git apply" (as i thought).
Comment #7
vlad.dancerThx a lot for your patch, good feature!
Comment #8
pfrenssenYes I use
git format-patch
to generate my patches. This includes some metadata which can be helpful for the maintainers. I did not realise this was incompatible with dreditor.Thanks for the review!
Comment #9
fubhy CreditAttribution: fubhy commentedI do not plan to add this to Omega Tools 3.x anymore. Omega 4.x comes with support for this out-of-the-box as the drush integration has been ported over to the theme layer entirely and got improved and extended quite a bit. Thanks for the idea though (this issue caused me to add it to 4.x).
Comment #9.0
fubhy CreditAttribution: fubhy commentedUpdated issue summary.