You are here

function hosting_ssl_get_platforms in Hostmaster (Aegir) 6

Return a list of platforms on SSL enabled servers.

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

File

modules/hosting/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;
}