You are here

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

Same name and namespace in other branches
  1. 7 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.

Return value

string Messsage indicating the modules are disabled and uninstalled.

File

src/Modules.php, line 180

Class

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

Namespace

HookUpdateDeployTools

Code

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