function _hosting_server_list_class in Hosting 7.4
Same name and namespace in other branches
- 7.3 server/hosting_server.module \_hosting_server_list_class()
Define the classes that correspond to the platform status.
1 call to _hosting_server_list_class()
- hosting_server_handler_field_status::render in server/
includes/ views/ handlers/ hosting_server_handler_field_status.inc - Render the field.
File
- server/
hosting_server.module, line 79
Code
function _hosting_server_list_class($status) {
static $labels;
$labels = _hosting_server_status_codes();
return is_object($status) ? $labels[$status->server_status]['class'] : $labels[$status]['class'];
}