Skip to content

Commit

Permalink
Merge tag '3.8.1' into 3.x-master
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruwan committed Feb 15, 2024
2 parents fe7b97f + 0e3c759 commit 9dbf42c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -89,7 +89,7 @@
"drupal/migrate_file": "2.1.2",
"drupal/migrate_plus": "6.0.2",
"drupal/migrate_source_csv": "3.6.0",
"drupal/migrate_tools": "6.0.2",
"drupal/migrate_tools": "6.0.4",
"drupal/minisite": "2.0.0",
"drupal/modifiers": "1.5.0",
"drupal/module_permissions": "3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion govcms.info.yml
Expand Up @@ -3,7 +3,7 @@ type: profile
description: 'A GovCMS Drupal Distribution for government and the public sector in Australia.'
core_version_requirement: ^10
project: 'govcms'
version: '3.8.0'
version: '3.8.1'

distribution:
name: GovCMS
Expand Down
15 changes: 15 additions & 0 deletions includes/govcms.update.inc
Expand Up @@ -106,3 +106,18 @@ 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().
* Disables swiftmailer module if marked as 'obsolete'.
*/
function govcms_update_10005() {
// Get the Lifecycle service.
$lifecycle_service = \Drupal::service('govcms.modules.lifecycle');

// List of modules to uninstall.
$modules_to_uninstall = ['swiftmailer'];

// Call the service method to uninstall specified modules marked as 'obsolete'.
$lifecycle_service->uninstallObsoleteModules($modules_to_uninstall);
}

0 comments on commit 9dbf42c

Please sign in to comment.