function hosting_https_hosting_site_options_alter in Aegir HTTPS 7.3
Implements hook_hosting_site_options_alter().
File
- ./
hosting_https.nodeapi.inc, line 64 - NodeAPI functions for the Hosting HTTPS module.
Code
function hosting_https_hosting_site_options_alter(&$return, $node) {
// Test if HTTPS has been enabled.
if (isset($node->https_enabled) && $node->https_enabled) {
// We need to ensure that the return value is properly indexed, otherwise it
// gets interpreted as an object by jquery.
$return['profile'] = array_values(array_intersect($return['profile'], hosting_https_get_profiles()));
$return['platform'] = array_values(array_intersect($return['platform'], hosting_https_get_platforms()));
}
}