function _hosting_task_error_codes in Hosting 6.2
Same name and namespace in other branches
- 7.4 task/hosting_task.module \_hosting_task_error_codes()
- 7.3 task/hosting_task.module \_hosting_task_error_codes()
Turn bitmask integer error code into associative array
2 calls to _hosting_task_error_codes()
- hosting_task_handler_filter_hosting_task_status::get_value_options in task/
hosting_task_handler_filter_hosting_task_status.inc - _hosting_parse_error_code in task/
hosting_task.module - Turn bitmask integer error code into translatable label.
File
- task/
hosting_task.module, line 968 - Web server node type is defined here.
Code
function _hosting_task_error_codes() {
$codes = array(
HOSTING_TASK_SUCCESS => t('Successful'),
HOSTING_TASK_QUEUED => t('Queued'),
HOSTING_TASK_ERROR => t('Failed'),
HOSTING_TASK_PROCESSING => t('Processing'),
HOSTING_TASK_WARNING => t('Warning'),
);
return $codes;
}