Skip to content

Commit

Permalink
Issue #3206: Add multisite check to telemetry.
Browse files Browse the repository at this point in the history
By @BWPanda, @indigoxela, @bugfolder, and @klonos.
  • Loading branch information
Peter Anderson authored and quicksketch committed Oct 6, 2023
1 parent a5f3fb7 commit e002efc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/modules/telemetry/telemetry.telemetry.inc
Expand Up @@ -33,6 +33,11 @@ function telemetry_telemetry_info() {
'description' => t('The profile that was used to install your site.'),
'project' => 'backdrop',
);
$info['multisite'] = array(
'label' => t('Multisite'),
'description' => t('Is this Backdrop installation set up as a multisite?'),
'project' => 'backdrop',
);
return $info;
}

Expand Down Expand Up @@ -62,5 +67,7 @@ function telemetry_telemetry_data($key) {
}
case 'install_profile':
return backdrop_get_profile();
case 'multisite':
return conf_path() == '.' ? 'No' : 'Yes';
}
}

1 comment on commit e002efc

@backdrop-ci
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.