You are here

public static function Modules::disableAndUninstall in Hook Update Deploy Tools 7

Same name and namespace in other branches
  1. 8 src/Modules.php \HookUpdateDeployTools\Modules::disableAndUninstall()

Disables and Uninstalls an array of modules. Will not process dependents.

Parameters

array $modules: An array of module machine names to disable and uninstall.

bool $include_dependents: Switch to disable and uninstall dependent modules. (default: TRUE)

Return value

string Messsage indicating the modules are disabled and uninstalled.

File

src/Modules.php, line 354

Class

Modules
Public method for enabling modules that verifies it was actually enabled.

Namespace

HookUpdateDeployTools

Code

public static function disableAndUninstall($modules = array(), $include_dependents = TRUE) {
  $modules = (array) $modules;
  $message = self::disable($modules, $include_dependents);
  $message .= self::uninstall($modules, $include_dependents);
  return $message;
}