You are here

function _hosting_platform_status_codes in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 platform/hosting_platform.module \_hosting_platform_status_codes()
  2. 7.3 platform/hosting_platform.module \_hosting_platform_status_codes()
2 calls to _hosting_platform_status_codes()
_hosting_platform_list_class in platform/hosting_platform.module
Define the classes that correspond to the platform status.
_hosting_platform_status in platform/hosting_platform.module

File

platform/hosting_platform.module, line 580
Platform node type definition.

Code

function _hosting_platform_status_codes() {
  $codes = array(
    HOSTING_PLATFORM_QUEUED => array(
      'label' => 'Queued',
      'class' => 'hosting-queue',
    ),
    HOSTING_PLATFORM_ENABLED => array(
      'label' => 'Enabled',
      'class' => 'hosting-success',
    ),
    HOSTING_PLATFORM_DELETED => array(
      'label' => 'Deleted',
      'class' => 'hosting-error',
    ),
    HOSTING_PLATFORM_LOCKED => array(
      'label' => 'Locked',
      'class' => 'hosting-disable',
    ),
  );
  return $codes;
}