You are here

function _hosting_task_log_class in Hosting 5

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

Map entry statuses to coincide.

@todo make this irrelevant.

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

File

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

Code

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