You are here

function hosting_ssl_get_profiles in Hostmaster (Aegir) 6

Return a list of profiles with SSL enabled platforms.

2 calls to hosting_ssl_get_profiles()
hook_hosting_site_options_alter in modules/hosting/site/hosting_site.api.php
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 69

Code

function hosting_ssl_get_profiles() {
  $platforms = hosting_ssl_get_platforms();
  $ssl_profiles = array();
  foreach ($platforms as $nid) {
    $platform = node_load($nid);
    $ssl_profiles = array_merge($ssl_profiles, array_keys($platform->profiles));
  }
  return array_unique($ssl_profiles);
}