You are here

function _hosting_status_class in Hosting 5

Returns a class name for the output of the form element.

1 call to _hosting_status_class()
theme_requirement_help in ./hosting_help.inc
Theme function for displaying contextual help.

File

./hosting_help.inc, line 22
Hosting help subsystem

Code

function _hosting_status_class($status) {
  static $map;
  if (!sizeof($map)) {
    $map = array(
      HOSTING_STATUS_NONE => 'hosting-status-none',
      HOSTING_STATUS_SUCCESS => 'hosting-status-success',
      HOSTING_STATUS_WARNING => 'hosting-status-warning',
      HOSTING_STATUS_ERROR => 'hosting-status-error',
    );
  }
  return $map[$status];
}