You are here

function _hosting_task_log_class in Hostmaster (Aegir) 6

Map entry statuses to coincide.

@todo make this irrelevant.

1 call to _hosting_task_log_class()
_hosting_task_log_table in modules/hosting/task/hosting_task.module
Display table containing the logged information for this task

File

modules/hosting/task/hosting_task.module, line 790
Web server node type is defined here.

Code

function _hosting_task_log_class($type) {
  switch (strtolower($type)) {
    case "warning":
      $type = "warning";
      break;
    case "error":
    case "failed":
      $type = "error";
      break;
    case "queue":
      $type = "queue";
      break;
    case "command":
    case "notice":
      $type = "info";
      break;
    default:
      $type = 'success';
      break;
  }
  return 'hosting-' . $type;
}