You are here

function hosting_ssl_get_platforms in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 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
Alters which site options are available.
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
Implemensts hook_hosting_site_options_alter

File

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

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