You are here

function hosting_task_status_class in Hosting 7.3

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

Return a css class from a hosting task status integer value.

3 calls to hosting_task_status_class()
hosting_task_fetch_tasks in task/hosting_task.module
@todo Please document this function.
hosting_task_handler_field_status::render in task/includes/views/handlers/hosting_task_handler_field_status.inc
Render the field.
_hosting_task_list in task/hosting_task.module
Theme a task list

File

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

Code

function hosting_task_status_class($status = NULL) {
  if (!is_null($status) && ($name = hosting_task_status_name($status))) {
    return 'hosting-' . $name;
  }
  else {
    return '';
  }
}