You are here

function hosting_task_status_class in Hostmaster (Aegir) 6

3 calls to hosting_task_status_class()
hosting_task_fetch_tasks in modules/hosting/task/hosting_task.module
hosting_task_queue_block in modules/hosting/task/hosting_task.module
Hosting task list queue block
_hosting_task_list in modules/hosting/task/hosting_task.module
Theme a task list

File

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

Code

function hosting_task_status_class($status = null) {
  $class = null;
  if (!is_null($status)) {
    switch ($status) {
      case HOSTING_TASK_SUCCESS:
        $class = 'hosting-success';
        break;
      case HOSTING_TASK_ERROR:
        $class = 'hosting-error';
        break;
      case HOSTING_TASK_QUEUED:
        $class = 'hosting-queue';
        break;
      case HOSTING_TASK_PROCESSING:
        $class = 'hosting-processing';
        break;
    }
  }
  return $class;
}