You are here

function uc_store_report_data in Ubercart 5

2 calls to uc_store_report_data()
uc_store_report_settings in uc_store/uc_store.module
uc_store_send_report in uc_store/uc_store.module

File

uc_store/uc_store.module, line 2907
Contains global Ubercart functions and store administration functionality.

Code

function uc_store_report_data() {

  // Build the data array.
  $data = array(
    'site_id' => variable_get('uc_store_site_id', ''),
    'server_name' => $_SERVER['SERVER_NAME'],
    'php_version' => PHP_VERSION,
    'drupal_version' => VERSION,
    'db_type' => $GLOBALS['db_type'],
    'db_version' => db_version(),
  );

  // Grab the Ubercart version from uc_store.info.
  $info = _module_parse_info_file(drupal_get_path('module', 'uc_store') . '/uc_store.info');
  $data['ubercart_version'] = $info['version'] ? $info['version'] : 'bzr';
  return $data;
}