You are here

function hosting_ssl_get_servers in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 web_server/ssl/hosting_ssl.module \hosting_ssl_get_servers()
  2. 7.3 web_server/ssl/hosting_ssl.module \hosting_ssl_get_servers()

Return a list of servers which have SSL enabled web services.

4 calls to hosting_ssl_get_servers()
hook_hosting_site_options_alter in site/hosting_site.api.php
Alters which site options are available.
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
Implemensts hook_hosting_site_options_alter
hosting_ssl_site_form in web_server/ssl/hosting_ssl.nodeapi.inc
Form API code to extend the site form with SSL fields.

File

web_server/ssl/hosting_ssl.module, line 47
Hook implementations for the Hosting SSL module.

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;
}