function _hosting_parse_error_code in Hostmaster (Aegir) 6
Turn bitmask integer error code into associative array
2 calls to _hosting_parse_error_code()
- hosting_task_status_output in modules/
hosting/ task/ hosting_task.module - Return the status of a task in human-readable form
- hosting_task_view in modules/
hosting/ task/ hosting_task.module - Implementation of hook_view().
File
- modules/
hosting/ task/ hosting_task.module, line 890 - Web server node type is defined here.
Code
function _hosting_parse_error_code($code) {
$messages = array(
HOSTING_TASK_SUCCESS => t('Successful'),
HOSTING_TASK_QUEUED => t('Queued'),
HOSTING_TASK_ERROR => t('Failed'),
HOSTING_TASK_PROCESSING => t('Processing'),
);
return $messages[$code];
}