function _acquia_spi_send in Acquia Connector 7.3
Same name and namespace in other branches
- 6.2 acquia_spi/acquia_spi.module \_acquia_spi_send()
- 7.2 acquia_spi/acquia_spi.module \_acquia_spi_send()
Callback for sending SPI data.
1 string reference to '_acquia_spi_send'
- acquia_spi_menu in acquia_spi/
acquia_spi.module - Implements hook_menu().
File
- acquia_spi/
acquia_spi.module, line 168 - Send site profile information (NSPI) and system data to Acquia Insight.
Code
function _acquia_spi_send() {
$method = ACQUIA_SPI_METHOD_CALLBACK;
// Insight's set variable feature will pass method insight.
if (isset($_GET['method']) && $_GET['method'] === ACQUIA_SPI_METHOD_INSIGHT) {
$method = ACQUIA_SPI_METHOD_INSIGHT;
}
$response = acquia_spi_send_full_spi($method);
if (isset($_GET['destination'])) {
acquia_spi_process_messages($response);
drupal_goto();
}
// If destination was not sent the call is via cron so close request and exit.
drupal_exit();
}