function _hosting_parse_error_code

7.x-3.x hosting_task.module _hosting_parse_error_code($code)

Turn bitmask integer error code into translatable label.

5 calls to _hosting_parse_error_code()
hook_hosting_task_update_status in ./hosting.api.php
Reacts to tasks ending, with any status.
hosting_task_drush_update_status in task/hosting_task.drush.inc
Shutdown function to catch any task status.
hosting_task_handler_field_status::render in task/includes/views/handlers/hosting_task_handler_field_status.inc
hosting_task_status_output in task/hosting_task.module
Return the status of a task in human-readable form
hosting_task_view in task/hosting_task.module
Implements hook_view().

File

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

Code

function _hosting_parse_error_code($code) {
  $messages = _hosting_task_error_codes();
  return $messages[$code];
}