function hosting_ssl_nodeapi_site_insert in Hosting 7.4
Same name and namespace in other branches
- 6.2 web_server/ssl/hosting_ssl.nodeapi.inc \hosting_ssl_nodeapi_site_insert()
- 7.3 web_server/ssl/hosting_ssl.nodeapi.inc \hosting_ssl_nodeapi_site_insert()
Implements hook_nodeapi_TYPE_OP().
1 call to hosting_ssl_nodeapi_site_insert()
- hosting_ssl_nodeapi_site_update in web_server/
ssl/ hosting_ssl.nodeapi.inc - Implements hook_nodeapi_TYPE_OP().
File
- web_server/
ssl/ hosting_ssl.nodeapi.inc, line 274 - NodeAPI functions for the Hosting SSL module.
Code
function hosting_ssl_nodeapi_site_insert($node) {
$id = db_insert('hosting_ssl_site')
->fields(array(
'vid' => $node->vid,
'nid' => $node->nid,
'ssl_enabled' => $node->ssl_enabled,
'ssl_key' => $node->ssl_key,
))
->execute();
}