function _hosting_server_status_codes in Hosting 7.4
Same name and namespace in other branches
- 7.3 server/hosting_server.module \_hosting_server_status_codes()
Helper function to map status codes to labels and classes.
3 calls to _hosting_server_status_codes()
- _hosting_server_list_class in server/
hosting_server.module - Define the classes that correspond to the platform status.
- _hosting_server_status in server/
hosting_server.module - Return the appropriate status label.
- _hosting_server_status_codes_labels in server/
hosting_server.module - Server status codes to human-readable label map.
File
- server/
hosting_server.module, line 34
Code
function _hosting_server_status_codes() {
$codes = array(
HOSTING_SERVER_QUEUED => array(
'label' => 'Queued',
'class' => 'hosting-queue',
),
HOSTING_SERVER_ENABLED => array(
'label' => 'Enabled',
'class' => 'hosting-success',
),
HOSTING_SERVER_DELETED => array(
'label' => 'Deleted',
'class' => 'hosting-error',
),
HOSTING_SERVER_LOCKED => array(
'label' => 'Locked',
'class' => 'hosting-disable',
),
);
return $codes;
}