You are here

function _hosting_parse_error_code in Hosting 5

Same name and namespace in other branches
  1. 6.2 task/hosting_task.module \_hosting_parse_error_code()
  2. 7.4 task/hosting_task.module \_hosting_parse_error_code()
  3. 7.3 task/hosting_task.module \_hosting_parse_error_code()

Turn bitmask integer error code into associative array

2 calls to _hosting_parse_error_code()
hosting_task_status_output in task/hosting_task.module
hosting_task_view in task/hosting_task.module
Implementation of hook_view().

File

task/hosting_task.module, line 474
Web server node type is defined here.

Code

function _hosting_parse_error_code($code) {
  $messages = array(
    HOSTING_TASK_SUCCESS => t('Succesful'),
    HOSTING_TASK_QUEUED => t('Queued'),
    HOSTING_TASK_ERROR => t('Failed'),
  );
  return $messages[$code];
}