You are here

function _hosting_platform_status in Hostmaster (Aegir) 6

1 call to _hosting_platform_status()
hosting_platform_view in modules/hosting/platform/hosting_platform.module
Implementation of hook_view().

File

modules/hosting/platform/hosting_platform.module, line 448
Platform node type definition.

Code

function _hosting_platform_status($node) {
  static $labels = array(
    HOSTING_PLATFORM_QUEUED => "Queued",
    HOSTING_PLATFORM_ENABLED => "Enabled",
    HOSTING_PLATFORM_DELETED => "Deleted",
    HOSTING_PLATFORM_LOCKED => "Locked",
  );
  return $labels[$node->platform_status];
}