function hosting_ssl_get_servers in Hosting 6.2
Same name and namespace in other branches
- 7.4 web_server/ssl/hosting_ssl.module \hosting_ssl_get_servers()
- 7.3 web_server/ssl/hosting_ssl.module \hosting_ssl_get_servers()
Return a list of servers which have SSL enabled web services.
3 calls to hosting_ssl_get_servers()
- hook_hosting_site_options_alter in site/
hosting_site.api.php - hosting_ssl_get_platforms in web_server/
ssl/ hosting_ssl.module - Return a list of platforms on SSL enabled servers.
- hosting_ssl_hosting_site_options_alter in web_server/
ssl/ hosting_ssl.nodeapi.inc
File
- web_server/
ssl/ hosting_ssl.module, line 36
Code
function hosting_ssl_get_servers() {
$servers = hosting_get_servers('http');
$ssl_servers = array();
foreach ($servers as $nid => $title) {
$node = node_load($nid);
if ($node->services['http']->ssl_enabled) {
$ssl_servers[] = $nid;
}
}
return $ssl_servers;
}