Is there any way to disable a module and its dependents modules with Drush.
Let's say I need to disable views but I have enable views_accordion as well.
If I run $ drush pm-disable views
I don't get the views module disable.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityYou should update your drush by the sounds of things. Doing drush dis views should result in the following:
drush dis views
The following extensions will be disabled: views, views_bulk_operations, og_ui, views_content, og_example, views_php, views_ui
Do you really want to continue? (y/n)
Which means the dependents are disabled at the same time.
In Drupal 8 we can uninstall the module with the following command:
drush pm:uninstall oauth2