TYPO3 CMS  TYPO3_6-2
UninstallExtension.php
Go to the documentation of this file.
1 <?php
3 
18 
30 
37  protected function executeAction() {
38  $getVars = Utility\GeneralUtility::_GET('install');
39  if (isset($getVars['uninstallExtension']) && isset($getVars['uninstallExtension']['extensions'])) {
40  $extensionsToUninstall = Utility\GeneralUtility::trimExplode(',', $getVars['uninstallExtension']['extensions']);
41  foreach ($extensionsToUninstall as $extension) {
42  if (Utility\ExtensionManagementUtility::isLoaded($extension)) {
43  try {
44  Utility\ExtensionManagementUtility::unloadExtension($extension);
45  } catch (\Exception $e) {
46  return $e->getMessage();
47  }
48  }
49  }
50  }
51  return 'OK';
52  }
53 
54 }