You are here

function _hosting_platform_status in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 platform/hosting_platform.module \_hosting_platform_status()
  2. 7.3 platform/hosting_platform.module \_hosting_platform_status()
2 calls to _hosting_platform_status()
hosting_platform_view in platform/hosting_platform.module
Implementation of hook_view().
views_handler_field_hosting_platform_status::render in platform/views_handler_field_hosting_platform_status.inc

File

platform/hosting_platform.module, line 602
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'];
}