Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WCMS
uw_sites_all
Commits
c6c06872
Commit
c6c06872
authored
Jun 21, 2022
by
Chris Shantz
Browse files
Merge branch '1.0.x' into prod/1.0.x
parents
65dda6a9
47fd3523
Changes
1
Hide whitespace changes
Inline
Side-by-side
uw_sites_all.install
View file @
c6c06872
...
...
@@ -839,3 +839,28 @@ function uw_sites_all_update_9118(array &$sandbox): void {
$scheduler_config
->
set
(
'log'
,
FALSE
)
->
save
();
}
}
/**
* Uninstall the migration modules if enabled.
*/
function
uw_sites_all_update_9119
(
&
$sandbox
)
{
// Modules to uninstall.
$modules
=
[
'uw_migrate'
,
'webform_migrate'
,
'webform_node'
,
];
// Step through each of the modules, ensure that they
// are enabled, and if enabled, uninstall.
foreach
(
$modules
as
$module
)
{
// If the module is enabled, uninstall it.
if
(
\
Drupal
::
service
(
'module_handler'
)
->
moduleExists
(
$module
))
{
// Uninstall the module.
\
Drupal
::
service
(
'module_installer'
)
->
uninstall
([
$module
]);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment