You are here

function hosting_ssl_get_profiles in Hosting 7.4

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

Return a list of profiles with SSL enabled platforms.

2 calls to hosting_ssl_get_profiles()
hook_hosting_site_options_alter in site/hosting_site.api.php
Alters which site options are available.
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 80
Hook implementations for the Hosting SSL module.

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