From 073e928e7b1ce848923ae35ee558cdbd8afce694 Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Thu, 13 Jul 2017 20:02:24 +0200 Subject: [PATCH] Allow removing modules installed by profile. (#3407) (#1916) --- src/Command/Module/UninstallCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Command/Module/UninstallCommand.php b/src/Command/Module/UninstallCommand.php index f73500ebe..114c1ee3d 100755 --- a/src/Command/Module/UninstallCommand.php +++ b/src/Command/Module/UninstallCommand.php @@ -172,6 +172,7 @@ protected function execute(InputInterface $input, OutputInterface $output) } if (!$force = $input->getOption('force')) { + $profile = drupal_get_profile(); $dependencies = []; while (list($module) = each($moduleList)) { foreach (array_keys($moduleData[$module]->required_by) as $dependency) {