function hosting_ssl_status_options in Hosting 7.3
Same name and namespace in other branches
- 6.2 web_server/ssl/hosting_ssl.nodeapi.inc \hosting_ssl_status_options()
- 7.4 web_server/ssl/hosting_ssl.nodeapi.inc \hosting_ssl_status_options()
Output filter for SSL enabled field.
2 calls to hosting_ssl_status_options()
- hosting_ssl_nodeapi_site_view in web_server/
ssl/ hosting_ssl.nodeapi.inc - Implements hook_nodeapi_TYPE_OP().
- hosting_ssl_site_form in web_server/
ssl/ hosting_ssl.nodeapi.inc - Form API code to extend the site form with SSL fields.
1 string reference to 'hosting_ssl_status_options'
- hosting_ssl_site_form in web_server/
ssl/ hosting_ssl.nodeapi.inc - Form API code to extend the site form with SSL fields.
File
- web_server/
ssl/ hosting_ssl.nodeapi.inc, line 191 - NodeAPI functions for the Hosting SSL module.
Code
function hosting_ssl_status_options($status = NULL) {
$options = array(
HOSTING_SSL_DISABLED => t('Disabled'),
HOSTING_SSL_ENABLED => t('Enabled'),
HOSTING_SSL_REQUIRED => t('Required'),
);
if (!is_null($status)) {
return $options[$status];
}
return $options;
}