function hosting_https_get_platforms in Aegir HTTPS 7.3
Return a list of platforms on HTTPS enabled servers.
2 calls to hosting_https_get_platforms()
- hosting_https_get_profiles in ./
hosting_https.module - Return a list of profiles with HTTPS enabled platforms.
- hosting_https_hosting_site_options_alter in ./
hosting_https.nodeapi.inc - Implements hook_hosting_site_options_alter().
File
- ./
hosting_https.module, line 79 - Hook implementations for the Hosting HTTPS module.
Code
function hosting_https_get_platforms() {
$https_servers = hosting_https_get_servers();
$https_platforms = array();
$platforms = _hosting_get_platforms();
foreach ($platforms as $nid => $title) {
$platform = node_load($nid);
if (in_array($platform->web_server, $https_servers)) {
$https_platforms[] = $nid;
}
}
return $https_platforms;
}