Skip to content

Commit

Permalink
Merge pull request #1603 from acquia/ACMS-1905-2.x
Browse files Browse the repository at this point in the history
ACMS-1905: Track Acquia CMS starterkits in telemetry data.
  • Loading branch information
vishalkhode1 authored Jul 28, 2023
2 parents d30cb6f + 354bcbb commit d519bdf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions acquia_cms.install
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ function acquia_cms_install() {
->set('logo.path', '/' . $acquia_cms_common_path . '/acquia_cms.png')
->save();
}

// Add user selected starter-kit to config as acquia_cms_direct_installations.
$acms_common = \Drupal::configFactory()->getEditable('acquia_cms_common.settings');
if ($acms_common) {
$acms_common->set('starter_kit_name', 'acquia_cms_direct_installations')->save(TRUE);
}
}

/**
Expand Down Expand Up @@ -71,3 +77,14 @@ function acquia_cms_update_8003() {
// Clear caches.
drupal_flush_all_caches();
}

/**
* Set starter-kit name as acquia_cms_existing_site to already installed sites.
*/
function acquia_cms_update_8004() {
// Add user selected starter-kit to config as acquia_cms_existing_site.
$acms_common = \Drupal::configFactory()->getEditable('acquia_cms_common.settings');
if ($acms_common) {
$acms_common->set('starter_kit_name', 'acquia_cms_existing_site')->save(TRUE);
}
}

0 comments on commit d519bdf

Please sign in to comment.