You are here

function hosting_ssl_get_platforms in Hosting 6.2

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

Return a list of platforms on SSL enabled servers.

3 calls to hosting_ssl_get_platforms()
hook_hosting_site_options_alter in site/hosting_site.api.php
hosting_ssl_get_profiles in web_server/ssl/hosting_ssl.module
Return a list of profiles with SSL enabled platforms.
hosting_ssl_hosting_site_options_alter in web_server/ssl/hosting_ssl.nodeapi.inc

File

web_server/ssl/hosting_ssl.module, line 51

Code

function hosting_ssl_get_platforms() {
  $servers = hosting_ssl_get_servers();
  $ssl_platforms = array();
  $platforms = _hosting_get_platforms();
  foreach ($platforms as $nid => $title) {
    $platform = node_load($nid);
    if (in_array($platform->web_server, $servers)) {
      $ssl_platforms[] = $nid;
    }
  }
  return $ssl_platforms;
}