Skip to content

Commit

Permalink
Merge pull request #1803 from acquia/ACMS-3648
Browse files Browse the repository at this point in the history
ACMS-3648: Add update hook to remove telemetry opted state variable.
  • Loading branch information
vishalkhode1 authored Apr 16, 2024
2 parents 67cbbf5 + 39ceb76 commit 3ff8f00
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
17 changes: 12 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions modules/acquia_cms_common/acquia_cms_common.install
Original file line number Diff line number Diff line change
Expand Up @@ -308,3 +308,14 @@ function acquia_cms_common_update_8009() {
}
}
}

/**
* Implements hook_update_N().
*
* Delete telemetry opted state variable if present.
*/
function acquia_cms_common_update_9331() {
if (\Drupal::state()->get('acquia_connector.telemetry.opted')) {
\Drupal::state()->delete('acquia_connector.telemetry.opted');
}
}
3 changes: 1 addition & 2 deletions modules/acquia_cms_common/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
"drupal/acquia_cms_starter": "<1.3.3",
"drupal/acquia_cms_toolbar": "<1.4",
"drupal/acquia_cms_tour": "<1.3.2 || ~2.0.0",
"drupal/acquia_cms_video": "<1.4",
"drupal/acquia_connector": "<4.0.6"
"drupal/acquia_cms_video": "<1.4"
},
"repositories": {
"assets": {
Expand Down

0 comments on commit 3ff8f00

Please sign in to comment.