You are here

function acquia_spi_check_acquia_hosted in Acquia Connector 7.3

Attempt to determine if this site is hosted with Acquia.

Return value

bool TRUE if site is hosted with Acquia, otherwise FALSE

7 calls to acquia_spi_check_acquia_hosted()
AcquiaSPITestCase::testAcquiaHosted in acquia_spi/tests/acquia_spi.test
Test acquia_spi_check_acquia_hosted() function.
acquia_spi_check_prod_env in acquia_spi/acquia_spi.module
Attempt to determine if this site is running on production environment.
acquia_spi_environment_change_form in acquia_spi/acquia_spi.pages.inc
Acquia SPI Environment Change Actions form.
acquia_spi_form_acquia_agent_settings_form_alter in acquia_spi/acquia_spi.module
Implements hook_form_FORM_ID_alter().
acquia_spi_get in acquia_spi/acquia_spi.module
Gather site profile information about this site.

... See full list

File

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

Code

function acquia_spi_check_acquia_hosted() {
  $server = acquia_agent_get_server_superglobal();
  return isset($server['AH_SITE_ENVIRONMENT'], $server['AH_SITE_NAME']);
}