function hosting_https_is_available in Aegir HTTPS 7.3
1 call to hosting_https_is_available()
- hosting_https_site_form in ./
hosting_https.nodeapi.inc - Form API code to extend the site form with HTTPS fields.
File
- ./
hosting_https.module, line 128 - Hook implementations for the Hosting HTTPS module.
Code
function hosting_https_is_available($site, $check_server_access = TRUE) {
$https_available = FALSE;
if (isset($site->nid)) {
$platform = node_load($site->platform);
if (in_array($platform->web_server, hosting_https_get_servers($check_server_access))) {
$https_available = TRUE;
}
}
elseif (count(hosting_https_get_servers($check_server_access)) > 0) {
$https_available = TRUE;
}
return $https_available;
}