function _acquia_purge_get_site_group in Acquia Purge 6
Same name and namespace in other branches
- 7 acquia_purge.deprecated.inc \_acquia_purge_get_site_group()
Determine the Acquia site group.
@returns Either a boolean FALSE or a string identifying what site group this is.
1 call to _acquia_purge_get_site_group()
- _acquia_purge_are_we_on_acquiacloud in ./
acquia_purge.module - Determine whether we are running on Acquia Cloud or not.
File
- ./
acquia_purge.module, line 596 - Acquia Purge, Top-notch Varnish purging on Acquia Cloud!
Code
function _acquia_purge_get_site_group() {
static $ah_site_group;
if (is_null($ah_site_group)) {
$ah_site_group = FALSE;
if (isset($_ENV['AH_SITE_GROUP']) && !empty($_ENV['AH_SITE_GROUP'])) {
$ah_site_group = $_ENV['AH_SITE_GROUP'];
}
}
return $ah_site_group;
}