X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Fdrupal%2Fpm_8.inc;fp=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Fdrupal%2Fpm_8.inc;h=0000000000000000000000000000000000000000;hp=d0d44b12c1617096c9b4cdcc80ca9de436aa5b4b;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/commands/core/drupal/pm_8.inc b/vendor/drush/drush/commands/core/drupal/pm_8.inc deleted file mode 100644 index d0d44b12c..000000000 --- a/vendor/drush/drush/commands/core/drupal/pm_8.inc +++ /dev/null @@ -1,86 +0,0 @@ - $extension)), LogLevel::WARNING); - } - elseif (in_array($extension, $required)) { - unset($extensions[$extension]); - $info = $extension_info[$extension]->info; - $explanation = !empty($info['explanation']) ? ' ' . dt('Reason: !explanation.', array('!explanation' => strip_tags($info['explanation']))) : ''; - drush_log(dt('!extension is a required extension and can\'t be uninstalled.', array('!extension' => $extension)) . $explanation, LogLevel::OK); - } - elseif (!$extension_info[$extension]->status) { - unset($extensions[$extension]); - drush_log(dt('!extension is already uninstalled.', array('!extension' => $extension)), LogLevel::OK); - } - elseif (drush_extension_get_type($extension_info[$extension]) == 'module') { - // Add installed dependencies to the list of modules to uninstall. - foreach (drush_module_dependents(array($extension), $extension_info) as $dependent) { - // Check if this dependency is not required, already enabled, and not already already in the list of modules to uninstall. - if (!in_array($dependent, $required) && ($extension_info[$dependent]->status) && !in_array($dependent, $extensions)) { - $extensions[] = $dependent; - } - } - } - } - - // Discard default theme. - $default_theme = drush_theme_get_default(); - if (in_array($default_theme, $extensions)) { - unset($extensions[$default_theme]); - drush_log(dt('!theme is the default theme and can\'t be uninstalled.', array('!theme' => $default_theme)), LogLevel::OK); - } - - // Inform the user which extensions will finally be disabled. - if (empty($extensions)) { - return drush_log(dt('There were no extensions that could be uninstalled.'), LogLevel::OK); - } - else { - drush_print(dt('The following extensions will be uninstalled: !extensions', array('!extensions' => implode(', ', $extensions)))); - if(!drush_confirm(dt('Do you really want to continue?'))) { - return drush_user_abort(); - } - } - - // Classify extensions in themes and modules. - $modules = array(); - $themes = array(); - drush_pm_classify_extensions($extensions, $modules, $themes, $extension_info); - - drush_module_uninstall($modules); - drush_theme_uninstall($themes); - - // Inform the user of final status. - foreach ($extensions as $extension) { - drush_log(dt('!extension was successfully uninstalled.', array('!extension' => $extension)), LogLevel::OK); - } -}