hosting_ssl.drush.inc in Hostmaster (Aegir) 6
File
modules/hosting/web_server/ssl/hosting_ssl.drush.incView source
<?php
function hosting_ssl_hosting_site_context_options(&$task) {
$node = $task->ref;
if (isset($node->ssl_enabled)) {
// we pass null to disable the option.
$task->context_options['ssl_enabled'] = $node->ssl_enabled ? $node->ssl_enabled : 'null';
if ($node->ssl_enabled) {
$task->context_options['ssl_key'] = hosting_ssl_get_key($node->ssl_key);
}
else {
$task->context_options['ssl_key'] = 'null';
}
}
}
Functions
Name | Description |
---|---|
hosting_ssl_hosting_site_context_options |