function _acquia_purge_get_site_name in Acquia Purge 6
Same name and namespace in other branches
- 7 acquia_purge.deprecated.inc \_acquia_purge_get_site_name()
Determine the Acquia site name.
@returns Either a boolean FALSE or a string identifying what site we are on.
4 calls to _acquia_purge_get_site_name()
- _acquia_purge_are_we_on_acquiacloud in ./
acquia_purge.module - Determine whether we are running on Acquia Cloud or not.
- _acquia_purge_get_diagnosis_acquiacloud in ./
acquia_purge.diagnostics.inc - Test whether the current hosting environment is Acquia Cloud.
- _acquia_purge_get_domains_add_acloud in ./
acquia_purge.module - Expand the list of domains being gathered by those defined in Acquia Cloud.
- _acquia_purge_queue_processpurge in ./
acquia_purge.module - Queue manager: process a single path (on all domains and balancers).
File
- ./
acquia_purge.module, line 579 - Acquia Purge, Top-notch Varnish purging on Acquia Cloud!
Code
function _acquia_purge_get_site_name() {
static $ah_site_name;
if (is_null($ah_site_name)) {
$ah_site_name = FALSE;
if (isset($_ENV['AH_SITE_NAME']) && !empty($_ENV['AH_SITE_NAME'])) {
$ah_site_name = $_ENV['AH_SITE_NAME'];
}
}
return $ah_site_name;
}