function hosting_ssl_nodeapi_site_presave in Hosting 7.3
Same name and namespace in other branches
- 6.2 web_server/ssl/hosting_ssl.nodeapi.inc \hosting_ssl_nodeapi_site_presave()
- 7.4 web_server/ssl/hosting_ssl.nodeapi.inc \hosting_ssl_nodeapi_site_presave()
Implements hook_nodeapi_TYPE_OP().
File
- web_server/
ssl/ hosting_ssl.nodeapi.inc, line 260 - NodeAPI functions for the Hosting SSL module.
Code
function hosting_ssl_nodeapi_site_presave(&$node) {
if (!isset($node->ssl_key)) {
$node->ssl_key = HOSTING_SSL_CUSTOM_KEY;
}
if (!isset($node->ssl_enabled)) {
$node->ssl_enabled = HOSTING_SSL_DISABLED;
}
// This creates the SSL key for the site, if required.
$node->ssl_key = hosting_ssl_save_key($node);
}