function _hosting_task_error_codes in Hosting 7.4
Same name and namespace in other branches
- 6.2 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_status::get_value_options in task/includes/ views/ handlers/ hosting_task_handler_filter_status.inc 
- Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
- _hosting_parse_error_code in task/hosting_task.module 
- Turn bitmask integer error code into translatable label.
1 string reference to '_hosting_task_error_codes'
- hosting_task_entity_property_info_alter in task/hosting_task.module 
- Implements hook_entity_property_info_alter().
File
- task/hosting_task.module, line 1599 
- 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;
}