You are here

function _acquia_spi_send_access in Acquia Connector 6.2

Same name and namespace in other branches
  1. 7.3 acquia_spi/acquia_spi.module \_acquia_spi_send_access()
  2. 7.2 acquia_spi/acquia_spi.module \_acquia_spi_send_access()

Access callback check for SPI send independent call.

1 string reference to '_acquia_spi_send_access'
acquia_spi_menu in acquia_spi/acquia_spi.module
Implements hook_menu().

File

acquia_spi/acquia_spi.module, line 141
Send site profile information (NSPI) and system data to Acquia Insight.

Code

function _acquia_spi_send_access() {
  $acquia_key = acquia_agent_settings('acquia_key');
  if (!empty($acquia_key) && isset($_GET['key'])) {
    $key = sha1(drupal_get_private_key());
    if ($key === $_GET['key']) {
      return TRUE;
    }
  }
  return FALSE;
}