Skip to content

Commit

Permalink
Merge pull request #1007 from govCMS/revert-996-GOVCMSD10-439
Browse files Browse the repository at this point in the history
Revert "[GOVCMSD10-443] Install symfony_mailer module."
  • Loading branch information
ruwanl committed Feb 5, 2024
2 parents 1be6a66 + 8fdf3b5 commit fe7b97f
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions includes/govcms.update.inc
Expand Up @@ -106,18 +106,3 @@ function govcms_update_10004() {
// Call the service method to uninstall specified modules marked as 'obsolete'.
$lifecycle_service->uninstallObsoleteModules($modules_to_uninstall);
}

/**
* Implements hook_update_N().
* Install symfony_mailer module if swiftmailer module is installed.
*/
function govcms_update_10005() {
// Check if the swiftmailer module is installed,
// and the symfony_mailer hasn't been installed.
if (\Drupal::moduleHandler()->moduleExists('swiftmailer') &&
!\Drupal::moduleHandler()->moduleExists('symfony_mailer')
) {
// Install the symfony_mailer module.
\Drupal::service('module_installer')->install(['symfony_mailer']);
}
}

0 comments on commit fe7b97f

Please sign in to comment.