function _hosting_platform_status_codes in Hosting 7.4
Same name and namespace in other branches
- 6.2 platform/hosting_platform.module \_hosting_platform_status_codes()
- 7.3 platform/hosting_platform.module \_hosting_platform_status_codes()
Helper function to map status codes to labels and classes.
3 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 - Return the appropriate status label.
- _hosting_platform_status_codes_labels in platform/
hosting_platform.module - Platform status codes to human-readable label map.
File
- platform/
hosting_platform.module, line 1009 - 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;
}