You are here

function acquia_spi_check_prod_env in Acquia Connector 7.3

Attempt to determine if this site is running on production environment.

Return value

bool TRUE if site is hosted with Acquia and site is on production environment.

1 call to acquia_spi_check_prod_env()
acquia_spi_flush_caches in acquia_spi/acquia_spi.module
Implements hook_flush_caches().

File

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

Code

function acquia_spi_check_prod_env() {
  $prod_env = array(
    'prod',
  );
  $server = acquia_agent_get_server_superglobal();
  return acquia_spi_check_acquia_hosted() && in_array($server['AH_SITE_ENVIRONMENT'], $prod_env);
}