function _hosting_platform_list_class in Hosting 7.3
Same name and namespace in other branches
- 6.2 platform/hosting_platform.module \_hosting_platform_list_class()
- 7.4 platform/hosting_platform.module \_hosting_platform_list_class()
Define the classes that correspond to the platform status.
1 call to _hosting_platform_list_class()
- hosting_platform_handler_field_status::render in platform/
includes/ views/ handlers/ hosting_platform_handler_field_status.inc - Render the field.
File
- platform/
hosting_platform.module, line 982 - Platform node type definition.
Code
function _hosting_platform_list_class($status) {
static $labels;
$labels = _hosting_platform_status_codes();
return is_object($status) ? $labels[$status->platform_status]['class'] : $labels[$status]['class'];
}