You are here

function _hosting_platform_list_class in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 platform/hosting_platform.module \_hosting_platform_list_class()
  2. 7.3 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 1080
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'];
}