function hosting_https_nodeapi_site_view in Aegir HTTPS 7.3
Implements hook_nodeapi_TYPE_OP().
File
- ./
hosting_https.nodeapi.inc, line 78 - NodeAPI functions for the Hosting HTTPS module.
Code
function hosting_https_nodeapi_site_view(&$node, $teaser = FALSE) {
$node->content['info']['https_enabled'] = array(
'#type' => 'item',
'#title' => t('Encryption'),
'#markup' => hosting_https_status_options(isset($node->https_enabled) ? $node->https_enabled : HOSTING_HTTPS_DISABLED),
'#weight' => 6,
);
$is_enabled = hosting_https_client_authentication_enabled($node);
$node->content['info']['https_client_authentication_enabled'] = array(
'#type' => 'item',
'#title' => t('Client authentication'),
'#markup' => $is_enabled ? 'Enabled' : 'Disabled',
'#weight' => 7,
);
if ($is_enabled) {
$node->content['info']['https_client_authentication_path'] = array(
'#type' => 'item',
'#title' => t('Client authentication path'),
'#markup' => hosting_https_client_authentication_path($node),
'#weight' => 8,
);
}
if (isset($node->https_enabled) && $node->https_enabled == TRUE) {
$node->content['info']['https_key'] = array(
'#type' => 'item',
'#title' => t('Encryption key'),
'#markup' => hosting_https_output_key($node),
'#weight' => 9,
);
}
}