|
|
@ -201,6 +201,13 @@ function islandora_update_8007() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
catch (ExtensionNameLengthException | MissingDependencyException $e) { |
|
|
|
catch (ExtensionNameLengthException | MissingDependencyException $e) { |
|
|
|
throw new UpdateException('Failed; ensure that the ctools module is available in the Drupal installation.'); |
|
|
|
throw new UpdateException('Failed; ensure that the ctools module is available in the Drupal installation.', 0, $e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
catch (\Exception $e) { |
|
|
|
|
|
|
|
throw new UpdateException('Failed; encountered an exception while trying to enable ctools.', 0, $e); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Theoretically impossible to hit, as ModuleInstaller::install() only returns TRUE (or throws/propagates an exception), but... |
|
|
|
|
|
|
|
// probably a good idea to have the here, just in case? |
|
|
|
|
|
|
|
throw new UpdateException('Failed; hit the end of the update hook implementation, which is not expected.'); |
|
|
|
} |
|
|
|
} |
|
|
|