1 telemetry.install telemetry_requirements($phase)

Implements hook_requirements().

File

core/modules/telemetry/telemetry.install, line 22
Install, update and uninstall functions for the Telemetry module.

Code

function telemetry_requirements($phase) {
  $requirements = array();
  // Ensure translations don't break during installation.
  $t = get_t();

  // Report Backdrop version
  if ($phase == 'runtime') {
    $items[] = l($t('View the Backdrop CMS data collection policy'), 'https://backdropcms.org/privacy');
    $items[] = l($t('View public Backdrop CMS data'), 'https://backdropcms.org/project/backdrop/telemetry');
    $links = theme('item_list', array('items' => $items));

    $requirements['telemetry'] = array(
      'title' => $t('Telemetry'),
      'value' => $t('Enabled'),
      'severity' => REQUIREMENT_INFO,
      'description' => $t('Anonymous information about how your site is configured is being sent to @domain to help improve the project. See the <a href="!telemetry_report">Telemetry report page</a> for more information.', array('@domain' => _telemetry_destination_server_name(), '!telemetry_report' => url('admin/reports/telemetry'))) . $links,
    );
  }

  return $requirements;
}