function drush_module_uninstall

8.0.x environment_7.inc drush_module_uninstall($modules)
8.0.x environment_6.inc drush_module_uninstall($modules)
8.0.x environment.inc drush_module_uninstall($modules)
6.x environment_6.inc drush_module_uninstall($modules)
6.x environment.inc drush_module_uninstall($modules)
6.x environment_7.inc drush_module_uninstall($modules)
7.x environment_7.inc drush_module_uninstall($modules)
7.x environment_6.inc drush_module_uninstall($modules)
7.x environment.inc drush_module_uninstall($modules)
3.x environment_7.inc drush_module_uninstall($modules)
3.x environment_6.inc drush_module_uninstall($modules)
3.x environment_5.inc drush_module_uninstall($modules)
4.x environment_6.inc drush_module_uninstall($modules)
4.x environment_5.inc drush_module_uninstall($modules)
4.x environment.inc drush_module_uninstall($modules)
5.x environment_6.inc drush_module_uninstall($modules)
5.x environment.inc drush_module_uninstall($modules)
master environment_7.inc drush_module_uninstall($modules)
master environment.inc drush_module_uninstall($modules)

Uninstall a list of modules.

Parameters

$modules: Array of module names

1 call to drush_module_uninstall()
drush_pm_uninstall in commands/pm/pm.drush.inc
Command callback. Uninstall one or more modules. // TODO: Use drupal_execute on system_modules_uninstall_confirm_form so that input is validated.

File

commands/core/drupal/environment.inc, line 174
Specific functions for a drupal 8 environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal drush is called from.

Code

function drush_module_uninstall($modules) {
  require_once DRUSH_DRUPAL_CORE . '/includes/install.inc';
  // Break off 8.x functionality when we get another change.
  if (drush_drupal_major_version() >= 8) {
    module_uninstall($modules);
  }
  else {
    drupal_uninstall_modules($modules);
  }
}