function _hosting_platform_status in Hosting 7.3
Same name and namespace in other branches
- 6.2 platform/hosting_platform.module \_hosting_platform_status()
- 7.4 platform/hosting_platform.module \_hosting_platform_status()
Return the appropriate status label.
2 calls to _hosting_platform_status()
- hosting_platform_handler_field_status::render in platform/
includes/ views/ handlers/ hosting_platform_handler_field_status.inc - Render the field.
- hosting_platform_view in platform/
hosting_platform.module - Implements hook_view().
File
- platform/
hosting_platform.module, line 947 - Platform node type definition.
Code
function _hosting_platform_status($status) {
static $labels;
$labels = _hosting_platform_status_codes();
return is_object($status) ? $labels[$status->platform_status]['label'] : $labels[$status]['label'];
}