Is there any way to disable a module and its dependents modules with Drush?

Is there any way to disable a module and its dependents modules with Drush?

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. You should update your drush by the sounds of things. Doing drush dis views should result in the following:

What happens if I run Drush pm-disable views?

If I run $ drush pm-disable views I don’t get the views module disable. You should update your drush by the sounds of things. Doing drush dis views should result in the following: Which means the dependents are disabled at the same time. Thanks for contributing an answer to Drupal Answers!

Is there a way to disable modules in Drupal?

One of the most perplexing to site builders is that you cannot disable modules any longer. Still, disabling modules was handy! If you suspected a module was the cause of a bug or a performance issue, the solution was simple: disable it. No longer needed a feature, but didn’t want to commit just yet? Disable!

Do you need to update Drush by the sounds of things?

You should update your drush by the sounds of things. Doing drush dis views should result in the following: Which means the dependents are disabled at the same time. Thanks for contributing an answer to Drupal Answers!

How to disable one or more extensions in Drush?

Disable one or more extensions (modules or themes). extensions : A list of modules or themes. You can use the * wildcard at the end of extension names to disable multiple matches. –cache : Cache release XML and tarballs or git clones. Git clones use git’s –reference option. Defaults to 1 for downloads, and 0 for git.

Why is my Drupal module not updating?

If you don’t delete the outdated module, Drupal may not reflect the update, and report an outdated module. If you have the Drush module installed, you can also update your modules from the command line.

How to disable non core modules in Drupal?

Now can produce a list of non-core modules to pass to the disable module Drush command. $ drush help pm-disable > Disable one or more extensions (modules or themes). Disable dependant extensions as well. > > Arguments: > extensions A list of modules or themes.

How to disable multiple matches in Drupal extension names?

You can > use the * wildcard at the end of > extension names to disable multiple > matches. > > > Aliases: dis Simple then. Putting it all together we can chain together the module list command output using shell command substitution and pass that output as arguments to the disable command, all in one neat line.

How to disable Drupal module in command line?

Drush is a very strong shell script that allows us to do several daily basis jobs in Drupal from command line. Once installed on the server, you can do several jobs within seconds. If you do not have drush installed, you can download it from here. To disable a module, write the following command: