function acquia_spi_get in Acquia Connector 6
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \acquia_spi_get()
- 7.3 acquia_spi/acquia_spi.module \acquia_spi_get()
- 7 acquia_spi/acquia_spi.module \acquia_spi_get()
- 7.2 acquia_spi/acquia_spi.module \acquia_spi_get()
Gather site profile information about this site.
Return value
An associative array keyed by types of information.
1 call to acquia_spi_get()
- acquia_spi_send_profile_info in acquia_spi/
acquia_spi.module - Send site profile information to Acquia Network via XML-RPC.
File
- acquia_spi/
acquia_spi.module, line 71 - Send site profile information (SPI) and system data to Acquia Network.
Code
function acquia_spi_get() {
// Include version number information.
acquia_agent_load_versions();
$acquia_version = $hashes = $fileinfo = array();
$hashes_string = '';
if (IS_ACQUIA_DRUPAL) {
$acquia_version = array(
'version' => ACQUIA_DRUPAL_VERSION,
'series' => ACQUIA_DRUPAL_SERIES,
'branch' => ACQUIA_DRUPAL_BRANCH,
'revision' => ACQUIA_DRUPAL_REVISION,
);
// Get file hashes and compute serialized version.
list($hashes, $fileinfo) = acquia_spi_file_hashes();
$hashes_string = serialize($hashes);
}
return array(
'modules' => acquia_spi_get_modules(),
'platform' => acquia_spi_get_platform(),
'quantum' => acquia_spi_get_quantum(),
'file_hashes' => $hashes,
'hashes_md5' => md5($hashes_string),
'hashes_sha1' => sha1($hashes_string),
'fileinfo' => $fileinfo,
'acquia_version' => $acquia_version,
);
}