function _hosting_platform_list_class in Hosting 6.2
Same name and namespace in other branches
- 7.4 platform/hosting_platform.module \_hosting_platform_list_class()
- 7.3 platform/hosting_platform.module \_hosting_platform_list_class()
Define the classes that correspond to the platform status.
2 calls to _hosting_platform_list_class()
- hosting_platform_listing in platform/
hosting_platform.module - Simple list for top level navigation.
- views_handler_field_hosting_platform_status::render in platform/
views_handler_field_hosting_platform_status.inc
File
- platform/
hosting_platform.module, line 638 - 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'];
}