You are here

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

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

Disables an array of modules and checks to make sure they were disabled.

Parameters

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

Return value

string Messsage indicating the modules are disabled.

1 call to Modules::disable()
Modules::disableAndUninstall in src/Modules.php
Disables and Uninstalls an array of modules. Will not process dependents.

File

src/Modules.php, line 115

Class

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

Namespace

HookUpdateDeployTools

Code

public static function disable($modules = array()) {
  $modules = (array) $modules;
  $disable_dependents = FALSE;
  module_disable($modules, $disable_dependents);

  // Verify that the modules were disabled.
  $success = self::checkDisabled($modules);
  return $success;
}